CS FundamentalsModerateGATE CS

Assertion (A): User-level thread switching is usually faster than kernel-level thread switching. Reason (R): Switching user-level threads needs no mode switch into the kernel.

  1. A. Both A and R are true, but R is not the correct explanation of A
  2. B. A is true but R is false
  3. C. Both A and R are true, and R is the correct explanation of A
  4. D. A is false but R is true

Correct answer: C. Both A and R are true, and R is the correct explanation of A

A user-level library can save and restore registers and switch stacks entirely in user mode, avoiding the trap into the kernel that dominates kernel-thread switch cost.

More Operating Systems questions

Exams that ask this topic