The GATE Grind

GATE 2015 CS (CS3) – Question 57

Operating System · CPU and I/O Scheduling · 2 marks · Multiple choice

Processes have (arrival,processing) times A=(0,3), B=(1,6), C=(4,4), D=(6,2). Which policy gives the lowest average turnaround time?

  1. FCFS
  2. Nonpreemptive shortest job first
  3. Shortest remaining time
  4. Round robin, quantum 2

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (C) Shortest remaining time

Explanation

SRT executes A from zero to three, B from three to four, then C from four to eight, D from eight to ten, and B from ten to fifteen; the equal remaining-time tie at six does not change the average. Turnarounds are 3,14,4,4, averaging 6.25. Nonpreemptive SJF/FCFS delay short arriving jobs. Thus C minimizes average turnaround here.

More CPU and I/O Scheduling questions

All CPU and I/O Scheduling questions →