Question
Which one of the following is FALSE?
Official answer and solution
- Official answer
- D
- From
- Official GATE 2014 answer key
Solution
Recall the fundamental distinctions between user-level threads and kernel-level threads regarding scheduling, blocking, and resource sharing.
Let us examine the options:
- (A) True: The OS kernel is unaware of user-level threads; they are managed and scheduled entirely by a user-space thread library without kernel involvement.
- (B) True: In a many-to-one user-level threading model, if one user-level thread makes a blocking system call, the entire kernel process blocks, thereby blocking all peer threads.
- (C) True: Context switching between user-level threads does not require trapping into kernel mode, saving registers and context switch overhead, making it significantly faster than kernel-level thread context switching.
- (D) False: All threads belonging to the same process (whether user-level or kernel-level) share the process address space, including the code segment (text), data segment, and open file descriptors. Therefore, kernel-level threads of the same process certainly can share the code segment.
Hence, statement D is FALSE.
Final answer
D
Common trap
Assuming kernel-level threads have separate address spaces like separate processes, whereas threads within a process share the same code and data.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 1
- Question
- 30 of 65, printed as CS Q.20
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.