GATE / CS ARCHIVE

SIMILAR QUESTIONS / OPERATING SYSTEMS

Trace round robin completion with unit quantum

2 questions solved the same way, newest first. Back to Operating Systems

How these are solved

Both give processes ready together with quantum one and ask finishing times under queue rotation. Burst list and number of processes differ, requiring independent timelines; no IO or explicit switching overhead is introduced.

2 marks · MCQ
Report issue

Asked again GATE 1993, Q7.10 (different numbers)

Completion time under round robin

CPU Scheduling

Question 2.20, GATE 1996: At time 0, jobs A,B,C,D arrive in that order with CPU bursts 4,1,8,1. With quantum 1 and no overhead, when does A complete?
Question 2.20, GATE 1996: At time 0, jobs A,B,C,D arrive in that order with CPU bursts 4,1,8,1. With quantum 1 and no overhead, when does A complete?
Tap to enlarge
Your answer
Answer & solution

Answer: D: time 9 (no official key was published)

The first four one-unit slices execute A,B,C,D, ending at time 4. B and D have now finished; A has three units left and C has seven. The next slices are A from 4–5, C from 5–6, A from 6–7, C from 7–8, and A from 8–9. A’s fourth unit therefore finishes at time 9. Counting four slices for A alone would ignore the CPU time given to other ready jobs. The result assumes the stated arrival order determines the initial queue and there is no context-switch cost.

Original paper, page 6

2 marks · MSQ
Report issue

Asked again GATE 1996, Q2.20 (different numbers)

Round-robin completion of p

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