GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 1.19

Scheduling for completion throughput

Operating Systems · CPU Scheduling · Full GATE CSE 2001 paper

GATE 2001, Q1.19 1 mark · MCQ
Report issue

CPU Scheduling

Question 1.19, GATE 2001: Given n tasks with known runtimes r1,…,rn on one processor, which policy maximizes throughput: round robin, shortest-job-first, highest-response-ratio-next, or FCFS? Explain the throughput interpretation needed.
Tap to enlarge
Your answer
Answer & solution

Answer: B under the finite-horizon completion interpretation (no official key was published)

Step 1: If all jobs are ready and their runtimes are known, the k shortest jobs have the minimum possible total runtime among all k-job subsets. Executing them first therefore completes as many jobs as possible by each time horizon, under zero overhead and no blocking. This favors SJF, B.

Step 2: However, if throughput means the entire fixed batch’s n completions divided by its total processing time, every work-conserving order gives n/(r1+…+rn). Under that definition no unique scheduler maximizes it.

The answer therefore needs the finite-horizon or average-completion interpretation; it must not claim SJF reduces the sum of all CPU bursts.

Original paper, page 3