CS FundamentalsEasyTCS NQT · Infosys pattern
In the standard five-state process model, which transition can NEVER happen directly?
- A. Waiting → Running
- B. Running → Waiting
- C. Ready → Running
- D. Waiting → Ready
Correct answer: A. Waiting → Running
A process whose I/O or event completes moves from Waiting to Ready and must then be picked by the scheduler; it cannot jump straight to Running. The other three transitions are all normal.
More Operating Systems questions
- The data structure in which the OS keeps a process's program counter, register contents, state and open-file list is called the:
- Short jobs stuck waiting behind one long CPU-bound job is called the convoy effect. It is characteristic of which scheduling algorithm?
- A system spends most of its time swapping pages in and out and does very little useful work. This condition is called:
- Which page-replacement algorithm can show Belady's anomaly (more frames giving more page faults)?
- The disk-scheduling algorithm in which the head sweeps to one end of the disk servicing requests and then reverses direction, like a lift…
- Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (times in ms). Under FCFS…