CS FundamentalsModerateGATE CS · TCS NQT
In the standard five-state process model (new, ready, running, blocked, exit), which transition can NOT happen directly?
- A. Running → Ready
- B. Blocked → Ready
- C. Running → Blocked
- D. Ready → Blocked
Correct answer: D. Ready → Blocked
A process blocks only by doing something, such as a system call that waits for I/O, and it can do that only while running. Running → Ready is preemption, and Blocked → Ready happens when the awaited event occurs.
More Operating Systems questions
- A program uses user-level threads mapped many-to-one onto a single kernel thread. One thread calls a blocking read() on a slow device…
- A bounded-buffer producer is written as wait(mutex); wait(empty); add item; signal(mutex); signal(full); while the consumer is the usual…
- Which statement about Belady's anomaly is correct?
- A machine has 32 GB of physical memory, 4 KB frames and an inverted page table with 8-byte entries. How big is the table, and why is a…
- Which statements are correct? 1. A child that has exited but whose parent has not called wait() is a zombie. 2. A zombie still holds its…
- The reference string at times 1–12 is 3, 5, 3, 8, 2, 5, 5, 9, 3, 9, 2, 2. With a working-set window Δ = 5 references, what are the…