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

Q7 · 9618/32/O/N/24 Q9

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

Q79618/32/O/N/24original Q9Structured · 5 marks
Question 9 from 9618/32/O/N/24

Worked solution

(a)

Write any two of these:

The kernel receives a signal when an interrupt is generated. [1]

It checks the priority of the interrupt against the current process. [1]

It uses the interrupt dispatch table to find the routine, and saves the state (register contents) of the interrupted process on the kernel stack. (also scores)

When the interrupt has been handled the kernel restores the saved state. (also scores)

Any two points score.

(b)(i)

Multi-tasking lets a computer carry out, or seem to carry out, more than one process at a time. [1]

(b)(ii)

Write any two of these:

Processor time and other resources are shared between the tasks. [1]

Scheduling decides which process runs, so tasks do not clash. [1]

A task of higher priority can interrupt a running task. (also scores)

Any two points score.

KEY IDEAThe kernel handles interrupts by priority and saved state, and multi-tasking shares the processor using scheduling.
TOTAL 5 marks

Official mark scheme

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

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