For the processes listed in the following table, which of the following scheduling schemes will give the lowest average turnaround time?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2015 Set 3 · Q34
Time

Select one answerSingle correct
Solution
Official answer: C) Shortest Remaining Time
CPU and I/O SchedulingTurnaround Time (TAT) is calculated as:
Let's evaluate each scheduling algorithm:
First Come First Serve (FCFS):
Execution order:
Completion times:
TAT:
Non-preemptive Shortest Job First (SJF):
: runs .
: Only is available, so runs .
: Both (burst 4) and (burst 2) are available. runs , then runs .
Completion times:
TAT:
Shortest Remaining Time (SRT / Preemptive SJF):
to : runs (burst 3). At , arrives (burst 6 > remaining ), so completes at .
to : runs (remaining becomes 5).
: arrives (burst 4). Since remaining of , preempts and runs until (remaining becomes 2).
: arrives (burst 2). Remaining times: . finishes at .
to : runs and finishes at .
to : finishes its remaining 5 units at .
Completion times:
TAT:
Round Robin with Quantum = 2:
Average TAT is .
Comparing the average turnaround times:
FCFS:
Non-preemptive SJF:
Shortest Remaining Time (SRT):
Round Robin:
Thus, Shortest Remaining Time gives the lowest average turnaround time.
Try the question first, then check your work.
Examiner trap
Construct a Gantt chart for each scheduling algorithm to determine the completion time of each process, or recall that Shortest Remaining Time (preemptive SJF) is mathematically optimal for minimizing average waiting and turnaround times.
This CPU and I/O Scheduling previous year question is Q34 of the GATE CSE 2015 Set 3 paper. Find more GATE CSE PYQs on CPU and I/O Scheduling in Operating Systems, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related CPU and I/O Scheduling PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
CPU and I/O Scheduling has 25 GATE CSE PYQs across 22 papers from 2011 to 2026. 7 of them are 2-mark MCQs like this one, and it is the only one in GATE CSE 2015 Set 3.
How GATE tests CPU and I/O SchedulingIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.