Skip to content
Related Articles

Related Articles

Improve Article
GATE | GATE-CS-2004 | Question 11
  • Last Updated : 16 Sep, 2014

Consider the following statements with respect to user-level threads and kernel supported threads

 
i.   context switch is faster with kernel-supported threads
ii.  for user-level threads, a system call can block the 
     entire process
iii. Kernel supported threads can be scheduled independently
iv.  User level threads are transparent to the kernel

Which of the above statements are true?
(A) (ii), (iii) and (iv) only
(B) (ii) and (iii) only
(C) (i) and (iii) only
(D) (i) and (ii) only


Answer: (A)

Explanation:

User level threadKernel level thread
User thread are implemented by users.kernel threads are implemented by OS.
OS doesn’t recognized user level threads.Kernel threads are recognized by OS.
Implementation of User threads is easy.Implementation of Kernel thread is complicated.
Context switch time is less.Context switch time is more.
Context switch requires no hardware support.Hardware support is needed.
If one user level thread perform blocking operation then entire process will be blocked.If one kernel thread perform blocking operation then another thread can continue execution.
Example : Java thread, POSIX threads.Example : Window Solaris.

http://en.wikipedia.org/wiki/Thread_%28computer_science%29

http://quiz.geeksforgeeks.org/operating-system-user-level-thread-vs-kernel-level-thread/

Quiz of this Question

Attention reader! Don’t stop learning now. Learn all GATE CS concepts with Free Live Classes on our youtube channel.

My Personal Notes arrow_drop_up
Recommended Articles
Page :