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

Q13 · 9618/32/O/N/25 Q5

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

Q139618/32/O/N/25original Q5Structured · 5 marks
Question 5 from 9618/32/O/N/25

Worked solution

(a)

Say what the low-level scheduler does when an interrupt arrives.

The low-level scheduler handles interrupts by priority, so the most important ones go first. [1]

It uses an interrupt vector table (or ISR lookup) to match the interrupt to its interrupt service routine, so critical events are dealt with without delay. [1]

(b)

Give one reason for each state.

running: the process has been given CPU time and is being executed. [1]

ready: the process is waiting in the ready queue for a slice of CPU time (it could run). [1]

blocked: the process is waiting for an I/O operation (or another event) to finish. [1]

KEY IDEAA running process is using the CPU, a ready process only needs the CPU, and a blocked process needs an event or I/O first.
TOTAL 5 marks

Official mark scheme

Mark scheme for 9618/32/O/N/25 question 5
VIDEO
▶ Starts at Q5 (40:30)

Starts at Q5 (40:30) · by Zafar Ali Khan (ZAK). 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.