GATE / CS ARCHIVE

GATE CSE 1998 / QUESTION 2.17

Round-robin waiting-time constraint

Operating Systems · CPU Scheduling · Full GATE CSE 1998 paper

GATE 1998, Q2.17 2 marks · MCQ
Report issue

CPU Scheduling

Question 2.17, GATE 1998: n processes share CPU; switches cost s seconds and quantum is q. Minimize overhead while each process gets a turn at least every t seconds. Options use q≤or≥(t−ns)/(n−1) or denominators n+1.
Tap to enlarge
Your answer
Answer & solution

Answer: A for maximum off-CPU waiting; start-to-start wording differs (no official key was published)

After a process’s quantum ends, n−1 other quanta occur before it runs again. Including the n intervening switches gives waiting time (n−1)q+ns. Requiring this≤t yields q≤(t−ns)/(n−1), A, for n>1 and feasible t>ns. Switching overhead fraction decreases as q grows, so choose equality to minimize it within that constraint. If “every t seconds” instead measures successive start times, the interval includes the process’s own quantum: n (q+s)≤t, giving q≤t/n−s. The listed answer assumes off-CPU waiting, not literal start-to-start spacing.

Original paper, page 5