CS FundamentalsHardGATE CS
How many of these transitions are possible in the standard five-state model (new, ready, running, waiting, terminated)? 1. waiting → running 2. ready → running 3. running → waiting 4. waiting → ready 5. ready → waiting
- A. 4
- B. 2
- C. 3
- D. 5
Correct answer: C. 3
2, 3 and 4 are possible. A waiting process becomes ready when its event occurs and must be dispatched from the ready queue, so waiting → running and ready → waiting (a non-running process cannot block) are impossible.
More Operating Systems questions
- Which of these does a context switch between two threads of the SAME process need NOT change, but a switch between two different processes…
- Which items are shared by all threads of one process? 1. Heap 2. Stack 3. Open file descriptors 4. Program counter 5. Global variables
- In the many-to-one threading model, which statement is correct?
- 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…