- GATE CS
- 2026–27 pattern practice
- Operating Systems
- Scheduling
- Medium
Four processes arrive at time with CPU bursts , , and ms. What is the average waiting time under non-preemptive SJF scheduling?
Process Management
Pick an option to check your answer.
Answer: B. Solution
SJF runs the shortest job first: order .
Waiting times are the start times: , , , .
Why not the others
- is FCFS in the given order: .
- is the average turnaround time, .
- averages over three processes, leaving out the first job's zero wait.