Hybrid Implementation of Thread

Q1. Explain Hybrid Implementation of Thread.

Ans. Various ways have been investigated to try to combine the advantages of user-level threads with kernel-level threads. One way is use kernel-level threads and then multiplex user-level threads onto some or all of the kernel threads. When this approach is used, the programmer can determine how many kernel threads to use and how many user-level threads to multiplex on each one. This model gives the ultimate in flexibility.

With this approach, the kernel is aware of only the kernel-level threads and schedules those. Some of those threads may have multiple user-level threads multiplexed on top of them. These user-level threads are created, destroyed, and scheduled just like user-level threads in a process that runs on an operating system without multithreading capability. In this model, each kernel-level thread has some set of user-level threads that take turns using it.

Hybird Implementation

Figure: Multiplexing user-level threads onto kernel-level threads


Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: