GATE / CS ARCHIVE

GATE CSE 1993 / QUESTION 7.10

Round-robin completion of p

Operating Systems · CPU Scheduling · Full GATE CSE 1993 paper

GATE 1993, Q7.10 2 marks · MSQ
Report issue

CPU Scheduling

Question 7.10, GATE 1993: At time 0 jobs p,q,r,s,t arrive in that order with bursts 4,1,8,1,2. Quantum is 1. Find p’s completion time.
Tap to enlarge
Select all that apply
Answer & solution

Answer: C: 11 (no official key was published)

The first round executes p,q,r,s,t from time 0 to 5; q and s then finish. The second round runs p from 5–6,r from 6–7,t from 7–8, completing t. The remaining queue is p,r. They run p8–9,r9–10,p10–11. This is p’s fourth unit, so it completes at 11. Context-switch overhead is assumed zero, and the arrival order determines the initial queue. A simple burst-only count would miss the intervening slices consumed by the other ready jobs.

Original paper, page 8