GATE / CS ARCHIVE

GATE CSE 2024 SET 1 / QUESTION 25

Identify impossible direct process transitions

Operating Systems · Processes, Threads & System Calls · Full GATE CSE 2024 Set 1 paper

GATE 2024 Set 1, Q25 1 mark · MSQ
Report issue

Processes, Threads & System Calls

Question 25, GATE 2024: In the standard process-state model, which direct transitions are not possible? A Running→Ready; B Waiting→Running; C Ready→Waiting; D Running→Terminated.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, C

Approach: Recall the distinction between being eligible to run, actually executing, and being blocked for an event.
1. Running→Ready is possible when the scheduler preempts a process, for example when its time slice expires. The process can still execute, but no longer holds the CPU. Thus A is not selected.
2. Waiting→Running is not a direct transition in this model. Completion of the awaited event makes the process Ready; only a later scheduling/dispatch action makes it Running. Select B.
3. Ready→Waiting is also not direct. A ready process is not executing and therefore cannot issue the blocking operation that makes it wait. It must first be dispatched to Running. Select C.
4. Running→Terminated is possible when a process exits, so D is not selected.
Answer: B and C. The question is about edges of the abstract state diagram, not whether a waiting process can eventually run after passing through Ready.

Original paper, page 17 · Answer key