Think FIFO is fair because jobs wait their turn? One huge job wrecks everyone.
From OSTEP, chapter 7: Scheduling: Introduction
Art: Kazusa © NEXON Games Co., Ltd. / Yostar, Inc. (demo only). Credits
Tap a stop to see what it covers
Concept 1 of 2
Turnaround time is completion time minus arrival time. Under FIFO, one long job ahead of short ones causes the convoy effect and pushes the average up to 110 seconds. Shortest Job First runs the short jobs first and brings the average down to 50 seconds.
p. 1p. 2p. 3p. 4
Operating Systems: Three Easy Pieces: Scheduling: Introduction
pages.cs.wisc.edu/~remzi/OSTEP/cpu-sched.pdfLicense: Free online edition (author-hosted)
Every reel line that states a fact quotes this material with a page number. Tap the source button on any reel to read the quote.
Operating Systems: Three Easy Pieces by Remzi H. Arpaci-Dusseau and Andrea C. Arpaci-Dusseau, free online edition at pages.cs.wisc.edu/~remzi/OSTEP.