9618/32/O/N/24 question 9: worked solution (October/November 2024, paper 32)

Show as plain text

Cambridge A2 Level Computer Science 9618 · 16.1 Purposes of an Operating System (OS) Worked solution from the System Software Paper 3 Advanced Theory booklet, Part 1 of 2. Q7 9618/32/O/N/24 original Q9 Structured · 5 marks 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 IDEA The kernel handles interrupts by priority and saved state, and multi-tasking shares the processor using scheduling. TOTAL 5 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Zafar Ali Khan (ZAK). Tap the picture to open it on YouTube.