CS FundamentalsHardGATE CS · Amazon/Microsoft SDE MCQ

A thread library offers only kernel-level threads (one-to-one). Which change makes thread creation and switching cheapest without losing parallelism on multiple cores?

  1. A. Switching to a many-to-one model
  2. B. Using processes instead of threads
  3. C. Disabling preemption during switches
  4. D. A many-to-many (M:N) model

Correct answer: D. A many-to-many (M:N) model

M:N multiplexes many user threads onto several kernel threads, so most switches happen in user space while several kernel threads still run on different cores. Many-to-one is cheap but gives up parallelism and blocks on system calls.

More Operating Systems questions

Exams that ask this topic