Skip to main content

GATE CSE 2016Operating System › CPU SchedulingVerified

GATE CSE 2016 PYQ: Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time…

Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?

  1. A
    Shortest remaining time first
    Correct answer
  2. B
    Round-robin with the time quantum less than the shortest CPU burst
  3. C
    Uniform random
  4. D
    Highest priority first with priority proportional to CPU burst length

Answer

(A) Shortest remaining time first

Approach

All processes arrive at the same time, so SRTF cannot preempt due to new arrivals and is equivalent to SJF. SJF is the classic optimal scheduling policy for minimizing average waiting time when burst times are known and all jobs are ready at time 0. Therefore the minimizing algorithm is SRTF/SJF.

The correct choice is A: Shortest remaining time first (equivalently SJF here) minimizes average waiting time, a standard optimality result in CPU scheduling.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.