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

Q6 · 9618/31/O/N/24 Q8

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

Q69618/31/O/N/24original Q8Structured · 7 marks
Question 8 from 9618/31/O/N/24

Worked solution

(a)

Write any four of these:

In segmentation the logical (virtual) address space is split into variable-sized blocks called segments. [1]

Each segment has a name (or number) and a size. [1]

During execution, segments are loaded from virtual memory into physical memory. [1]

An address has a segment number and an offset; the number is an index into the segment map table. [1]

The segment map table maps logical addresses to physical addresses. (also scores)

Any four points score the 4 marks.

(b)

Explain what it means:

Disk thrashing can happen when virtual memory is used. [1]

When main memory is full, more and more pages are swapped in and out of virtual memory, causing a very high rate of disk access (head movement). [1]

Moving the head is slow, so more time is spent swapping pages than processing data, and the program may freeze. [1]

KEY IDEASegmentation uses variable-sized blocks found through a segment map table, and thrashing is too much page swapping.
TOTAL 7 marks

Official mark scheme

Mark scheme for 9618/31/O/N/24 question 8
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.