Consider a multiprocessor system and a multithreaded program written using the many- to-many threading model. Let the number of user-level threads in the program be greater than the number of processors in the system. Discuss the performance implications of the following scenarios.
1. The number of kernel threads allocated to the program is less than the number of processors.
2. The number of kernel threads allocated to the program is equal to the number of processors.
3. The number of kernel threads allocated to the program is greater than the number of processors but less than the number of user- level threads.
Answer-
1)- The individual processors would keep going
since the hardware mappings only kernel threads to processors and
non user-level threads to processors.
2)- It is applicant that every the CPUs strength
be converted at the same time. Still, when a kernel object blocks
inwardly the kernel the related to processor would stay on
operation.
3)- A blocked kernel thread could be switched down in prefer to some other kernel thread that is fit to carry through, thereby modifying the utilization of the multiprocessor system.
Note- Please do upvote, if any problem then comment in box sure I will help.
Get Answers For Free
Most questions answered within 1 hours.