Worked solution from the System Software Paper 3 Advanced Theory booklet, Part 1 of 2.
Write three states a process can be in:
Running [1]
Ready [1]
Blocked [1]
Function of shortest job first (any three points):
Processes are queued as they arrive [1]
The process with the shortest burst time is picked first and run [1]
It runs until it finishes or goes to a waiting state; it is non-pre-emptive [1]
Another point that scores: longer jobs may be starved if shorter jobs keep arriving.
Benefit (one needed): short jobs do not wait for long jobs, so the average waiting time is much lower, or throughput is higher [1]
▶ Topic lesson
A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.