GATE / CS ARCHIVE

GATE CSE 2004 / QUESTION 11

User and kernel thread properties

Operating Systems · Processes, Threads & System Calls · Full GATE CSE 2004 paper

GATE 2004, Q11 1 mark · MCQ
Report issue

Processes, Threads & System Calls

Question 11, GATE 2004: Regarding user-level and kernel-supported threads, select the true statements: (1) Context switching is faster with kernel-supported threads. (2) A system call by a user-level thread can block the whole process. (3) Kernel-supported threads can be scheduled independently. (4) User-level threads are transparent to the kernel.
Options:
(A) 2,3,4 only
(B) 2,3 only
(C) 1,3 only
(D) 1,2 only
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. In the conventional many-to-one user-thread model, a blocking system call can block the process, the kernel does not see individual user threads, and kernel-supported threads can be scheduled independently. Thus2,3,4 are true, A.

2. User-thread context switches normally avoid kernel transitions and are not slower by definition; statement 1 is false. Modern hybrid threading arrangements need not share the many-to-one blocking limitation.

3. Teaching check: Separate visibility from speed: the kernel schedules only what it knows about. A library can switch its user threads without a kernel transition, but a blocking call can stop their common kernel scheduling entity. Kernel-supported threads trade that limitation for kernel-managed scheduling.

Original paper, page 2