GATE 2012 CS (CS1) – Question 41
Processes P₁,P₂,P₃ have (arrival,CPU time) (0,5),(1,7),(3,4). Find completion orders for FCFS and round robin with quantum two.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) FCFS P₁,P₂,P₃; RR₂ P₁,P₃,P₂
Explanation
FCFS runs in arrival order, completing P₁,P₂,P₃. RR timeline is P₁:0–2, P₂:2–4, P₁:4–6, P₃:6–8, P₂:8–10, P₁:10–11, P₃:11–13, P₂:13–16. Thus RR completes P₁,P₃,P₂. Select C.