Definition
A non-preemptive scheduling technique that runs the process with the shortest CPU run time first, to reduce the average waiting time
Visual IT Encyclopedia › Operating Systems › Process Management
Definition
A non-preemptive scheduling technique that runs the process with the shortest CPU run time first, to reduce the average waiting time
Setup: one CPU. P1–P4 are four programs (processes) to run. Arrival says at how many ms a process joined the line, and run time says how many ms it needs to run on the CPU to finish. (ms: a thousandth of a second)
0 / 6
Shortest Job First (SJF) Scheduling
The process with the shortest run time in the ready queue runs first. It is non-preemptive, so even if a shorter process arrives while one is running, it waits until the current process finishes. Handling short jobs first lowers the average waiting time.
At a bank: when the person at the counter is done, the next one called is the waiting customer whose errand will take the least time.