The GATE Grind

GATE 2014 CS (CS1) – Question 30

Operating System · System Calls, Processes, Threads and IPC · 1 mark · Multiple choice

Which thread statement is FALSE?

  1. User-level threads are not scheduled by the kernel.
  2. When a user-level thread blocks, all other threads of its process block.
  3. Switching between user-level threads is faster than switching between kernel-level threads.
  4. Kernel-level threads cannot share the code segment.

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (D) Kernel-level threads cannot share the code segment.

Explanation

Kernel-managed threads can share their process’s code segment and other process resources. Therefore **D**, claiming they cannot share code, is false. The user-thread blocking statement assumes the traditional many-to-one implementation in which a blocking system call blocks its kernel-scheduled process.