Skip to content
Mad4Study

Engineering & Science

GATE Computer Science

  • GATE CS
  • 2026–27 pattern practice
  • Operating Systems
  • Scheduling
  • Medium

Four processes arrive at time 00 with CPU bursts 66, 88, 77 and 33 ms. What is the average waiting time under non-preemptive SJF scheduling?

Process Management

Pick an option to check your answer.

SJF runs the shortest job first: order 3,6,7,83, 6, 7, 8.

Waiting times are the start times: 00, 33, 3+6=93 + 6 = 9, 9+7=169 + 7 = 16.

Average=0+3+9+164=284=7 ms\text{Average} = \frac{0 + 3 + 9 + 16}{4} = \frac{28}{4} = 7\ \text{ms}

Why not the others

  • 10.25 ms10.25\ \text{ms} is FCFS in the given order: 0+6+14+214\tfrac{0 + 6 + 14 + 21}{4}.
  • 13 ms13\ \text{ms} is the average turnaround time, 3+9+16+244\tfrac{3 + 9 + 16 + 24}{4}.
  • 9.33 ms9.33\ \text{ms} averages over three processes, leaving out the first job's zero wait.

Report an error

GATE CS · Operating Systems · Process Management