Shortest Job First picks the ready process with the smallest next CPU burst; it minimizes average waiting time (provably optimal for that metric) but is non-preemptive. Shortest Remaining Time First is its preemptive version: a newly arrived process with a shorter remaining time takes the CPU.
Problems: the next burst length is unknown and must be predicted (for example with exponential averaging of past bursts), and long processes can starve.
Loading…