Consider the following statements about user level threads and kernel ...
Kernel level threads are managed by the OS, therefore, thread operations are implemented in the kernel code. Kernel level threads can also utilize multiprocessor systems by splitting threads on different processors. If one thread blocks it does not cause the entire process to block. Kernel level threads have disadvantages as well. They are slower than user level threads due to the management overhead. Kernel level context switch involves more steps than just saving some registers. Finally, they are not portable because the implementation is operating system dependent.
Option (A): Context switch time is longer for kernel level threads than for user level threads. True, As User level threads are managed by user and Kernel level threads are managed by OS. There are many overheads involved in Kernel level thread management, which are not present in User level thread management. So context switch time is longer for kernel level threads than for user level threads.
Option (B): User level threads do not need any hardware support True, as User level threads are managed by user and implemented by Libraries, User level threads do not need any hardware support.
Option (C): Related kernel level threads can be scheduled on different processors in a multi- processor system. This is true.
Option (D): Blocking one kernel level thread blocks all related threads. false, since kernel level threads are managed by operating system, if one thread blocks, it does not cause all threads or entire process to block.
View all questions of this test
Consider the following statements about user level threads and kernel ...
False Statement about User Level Threads and Kernel Level Threads
Context switch time is longer for kernel level threads than for user level threads.
User Level Threads
- User level threads are threads that are managed by the user-level thread library.
- They do not need any hardware support and are managed entirely by the user-level thread library.
- User level threads are faster to create and manage than kernel level threads.
- They are lightweight, and their creation and scheduling do not require any system calls.
Kernel Level Threads
- Kernel level threads are threads that are managed by the operating system kernel.
- They require hardware support and are managed by the operating system kernel.
- Kernel level threads are slower to create and manage than user level threads.
- They are heavyweight, and their creation and scheduling require system calls.
False Statement
Blocking one kernel level thread blocks all related threads.
- This statement is false because related kernel level threads can be scheduled on different processors in a multi-processor system.
- In a multi-processor system, different kernel level threads can run on different processors simultaneously, and blocking one thread will not affect the others.
- However, in a single-processor system, blocking one kernel level thread can result in blocking all related threads as they share the same processor.
To make sure you are not studying endlessly, EduRev has designed Computer Science Engineering (CSE) study material, with Structured Courses, Videos, & Test Series. Plus get personalized analysis, doubt solving and improvement plans to achieve a great score in Computer Science Engineering (CSE).