Question 58Asked in UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)

One of the disadvantages of user level threads compared to Kernel level threads is

  1. AIf a user level thread of a process executes a system call, all threads in that process are blocked
  2. BScheduling is application dependent
  3. CThread switching doesn't require kernel mode privileges
  4. DThe library procedures invoked for thread management in user level threads are local procedures
Show answerHide answer

Correct answer: (A) If a user level thread of a process executes a system call, all threads in that process are blocked

Explanation

User level threads – advantages: thread switching does not require kernel mode privileges; they can run on any OS; they are fast to create and manage. Disadvantages: in a typical OS most system calls are blocking, so if one user level thread executes a system call, all threads of that process are blocked; and a multithreaded application cannot take advantage of multiprocessing.

From UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions)

This is question 58 of UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.