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