Cambridge A2 Level Computer Science 9618 · 16.1 Purposes of an Operating System (OS)

Q10 · 9618/32/M/J/25 Q5

Worked solution from the System Software Paper 3 Advanced Theory booklet, Part 1 of 2.

Q109618/32/M/J/25original Q5Structured · 7 marks
Question 5 from 9618/32/M/J/25

Worked solution

(a)

Write three states a process can be in:

Running [1]

Ready [1]

Blocked [1]

(b)

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]

KEY IDEAShortest job first picks the process with the shortest burst time and lets it run to the end.
TOTAL 7 marks

Official mark scheme

Mark scheme for 9618/32/M/J/25 question 5
VIDEO
▶ 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.