Multi threading model

annalakshmir2 180 views 6 slides Apr 11, 2021
Slide 1
Slide 1 of 6
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6

About This Presentation

multi threading model in os


Slide Content

MULTI THREADING MODEL By, R.Annalakshmi, 20PA03, Operating system, 1-MCA 1 21-11-2020

Types Multi Thread Model: To establish relationship between user thread and kernel thread it’s called multi threading model. Many-to-one model One-to-one model Many-to-many model 2 21-11-2020

Many-to-one model: 3 21-11-2020 Many user level thread to one kernel level thread. Thread management is done by the thread library in user space.so,it is efficient. The entire process will block if a thread makes a blocking system call . Multiple threads are unable to run in parallel of multiprocessors. Ex: ticket booking

One-to-one model: 21-11-2020 4 Each user thread have one kernel thread. Provides more concurrency then the many-to-many model by allowing another thread to run when a thread makes a blocking system call . Also multiple threads run in a parallel of multi processor. Creating a user thread requires corresponding level of kernel thread.

Many-to-many-model: 21-11-2020 5 Multiplexes many user-level threads to a smaller or equal number of kernel threads. The number of kernel threads may be specific to either a particular application or a particular machine. Also, when a thread performs a blocking system call, the kernel can schedule another thread for execution. Ex: network

21-11-2020 6