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

Q3 · 9618/32/O/N/22 Q9

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

Q39618/32/O/N/22original Q9Structured · 9 marks
Question 9 from 9618/32/O/N/22

Worked solution

(a)

Write any three reasons:

Scheduling lets more than one program appear to run at the same time (multi-tasking) [1]

It lets high priority jobs finish first [1]

It keeps the CPU busy all the time so processes run efficiently [1]

Also accepted: it gives all processes fair access to the CPU, reduces waiting times and stops starvation

Only three score (3 marks).

(b)

For each routine, give a description and a benefit.

Shortest job first: the processes needing the least CPU time are run first, then the longer ones [1]

Benefit: higher throughput, because more processes finish in less time [1]

Round robin: each process gets the CPU for a fixed time slice [1]

Benefit: no starvation, because every process gets a turn in each cycle [1]

First come first served: each request is queued as it arrives and run one at a time, with no complex logic [1]

Benefit: no starvation because every process eventually runs, or low processor overhead [1]

KEY IDEAScheduling shares the CPU between processes; each routine trades speed, fairness and simplicity differently.
TOTAL 9 marks

Official mark scheme

Mark scheme for 9618/32/O/N/22 question 9
VIDEO
▶ Whole paper

Video solution of the whole paper · by qiphyedu. 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.