GATE / CS ARCHIVE

GATE CSE 2010 / QUESTION 25

Scheduling starvation and responsiveness

Operating Systems · CPU Scheduling · Full GATE CSE 2010 paper

GATE 2010, Q25 1 mark · MCQ
Report issue

CPU Scheduling

Question 25, GATE 2010: Which statements about CPU scheduling are true? I: shortest-remaining-time-first may cause starvation. II: preemptive scheduling may cause starvation. III: round robin is better than FCFS in response time.
Options: (A) I only; (B) I and III only; (C) II and III only; (D) I,II and III.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

SRTF may indefinitely postpone a long job when shorter jobs keep arriving, so I is true. SRTF is itself preemptive, establishing that preemptive scheduling may cause starvation, so II is true. Round robin’s time slices let waiting jobs receive CPU service without waiting for a long earlier job to finish, which is the conventional interactive response-time advantage asserted by III. The intended answer is all three, D. III is a qualitative textbook comparison, not a strict improvement for every workload and quantum; for a quantum exceeding all bursts, RR reduces to FCFS.

Starvation means unbounded waiting, not merely a long finite delay. Under SRTF, a long job can be repeatedly preempted by a stream of shorter jobs. Round robin uses a bounded quantum to distribute service opportunities among ready jobs, which improves typical interactive first-response behavior, while potentially increasing context-switch cost. The word “may” in I and II is essential.

Original paper, page 6