CS FundamentalsHardGATE CS
In the many-to-one threading model, which statement is correct?
- A. Each user thread gets its own kernel thread, so a block affects only that thread
- B. The kernel schedules each user thread independently
- C. It needs one kernel thread per CPU core
- D. Threads cannot run in parallel on a multicore CPU, and one blocking system call blocks every thread of the process
Correct answer: D. Threads cannot run in parallel on a multicore CPU, and one blocking system call blocks every thread of the process
All user threads are multiplexed onto a single kernel-schedulable entity, so the kernel sees one thread: no parallelism and a blocking call stalls them all. One-to-one avoids both problems.
More Operating Systems questions
- Assertion (A): User-level thread switching is usually faster than kernel-level thread switching. Reason (R): Switching user-level threads…
- A process is in the middle of a system call when a hardware interrupt arrives. Which statement about mode and stacks is correct on a…
- Which of these instructions must be privileged (allowed only in kernel mode) for the OS to keep control? 1. Disable interrupts 2. Read the…
- A process calls read() on a file. Put these in the correct order: (a) the kernel validates arguments and starts I/O; (b) the process…
- Which of the following is TRUE about a zombie process?
- A program has 5% serial code and runs on 16 cores. By Amdahl's law, what is the best speedup possible, and what is the limit as the number…