GATE CS 2022 | Question 42
Operating Systems › CPU Scheduling · MCQ · 2 marks · Answer: D
- Question 42Operating Systemsmcq2 marksFour processes P, Q, R, S arrive at t=0 in that order, scheduled by Round Robin with quantum 4. There is exactly one context switch S->Q, exactly one R->Q, exactly two Q->R, and no S->P. Which CPU burst times are NOT possible?
- A.P = 4, Q = 10, R = 6, S = 2
- B.P = 2, Q = 9, R = 5, S = 1
- C.P = 4, Q = 12, R = 5, S = 4
- D.P = 3, Q = 7, R = 7, S = 3✓
Answer: D
Solution
Answer: (D) P = 3, Q = 7, R = 7, S = 3 Simulating Round Robin (quantum 4) for each option and checking the required context-switch pattern (exactly one S->Q, one R->Q, two Q->R, and no S->P): option (D)'s burst times produce a schedule that violates these constraints (it does not yield exactly two Q->R switches without an S->P switch), so it is NOT possible. - A.
More GATE PYQ on CPU Scheduling
All GATE CS Operating Systems PYQ →Attempt GATE CS 2022 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →