CS FundamentalsVery hardGATE CS
Which statement about scheduler activations / the two-level (many-to-many) threading model is correct?
- A. The kernel schedules every user thread directly
- B. User threads cannot block in this model
- C. The kernel notifies the user-level thread library (an upcall) when a thread blocks, so the library can run another user thread on the freed kernel resource
- D. It requires one kernel thread per user thread
Correct answer: C. The kernel notifies the user-level thread library (an upcall) when a thread blocks, so the library can run another user thread on the freed kernel resource
Scheduler activations let the kernel inform the runtime about blocking and unblocking events, combining cheap user-level switching with the ability to keep processors busy during blocking calls.
More Operating Systems questions
- How many of these statements about virtual memory are correct? 1. A process can have a virtual address space larger than physical memory…
- A process accesses an address whose PTE has the valid bit clear. Which TWO situations are both possible, and how does the OS tell them…
- Which feature lets an OS allocate memory for a growing stack only when it is actually touched?
- A system thrashes at 50 processes. Which of these will reduce thrashing? 1. Using local page replacement 2. Adding more physical memory 3…
- Why is pure LRU rarely implemented exactly in hardware, and what is used instead?
- The aging algorithm keeps an 8-bit counter per page; every tick it shifts the counter right by one and puts the page's reference bit into…