Many operating systems support kernel thread and user thread in a combined way. Example of such system is Solaris. Multi threading model are of three types.
Many to many model. Many to one model. one to one model.
Many to Many Model
In this model, we have multiple user threads multiplex to same or lesser number of kernel level threads. Number of kernel level threads are specific to the machine, advantage of this model is if a user thread is blocked we can schedule others user thread to other kernel thread. Thus, System doesn’t block if a particular thread is blocked.
Many to One Model
In this model, we have multiple user threads mapped to one kernel thread. In this model when a user thread makes a blocking system call entire process blocks. As we have only one kernel thread and only one user thread can access kernel at a time, so multiple threads are not able access multiprocessor at the same time.
One to One Model
In this model, one to one relationship between kernel and user thread. In this model multiple thread can run on multiple processor. Problem with this model is that creating a user thread requires the corresponding kernel thread.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above
- How to test all Linux distributions without downloading them?
- Python | How to lock Critical Sections
- Interprocess Communication in Distributed Systems
- Difference between Volatile Memory and Non-Volatile Memory
- Comparison on using Java for an Operating System instead of C
- Read-Copy Update (RCU)
- Difference between Blu-ray and DVD
- Difference between CLI and GUI
- Difference between PROM and EPROM
- Difference between RPC and RMI
- Difference between CD and DVD
- Difference between Time Sharing OS and Real-Time OS
- Difference between Interrupt and Polling
- Difference between Linux and Windows