25-Comp-A5 Operating Systems
Worked solutions to 11 past sittings (2013–2019), 77 questions. Pick a sitting, or start from a topic below.
- December 2019
- May 2018
- December 2017
- May 2017
- December 2015
- May 2015
- December 2014
- May 2014
- December 2013
- May 2013
- Paper printed May 2019
Study guide for this subject
The study guide for this subject maps 14 topics across the 11 sittings it covers. It works 14 recurring problem types as step-by-step methods and has a formula sheet of 11 entries.
The topics it maps, and how many of those sittings each came up in:
- CPU scheduling: Gantt charts and mean turnaround or waiting time (in 8 of 11 sittings)
- Priority formulas with adjustable constants (reproducing FCFS or LCFS) (in 5 of 11 sittings)
- Real-time systems: hard vs soft, priority inversion (in 9 of 11 sittings)
- Multiple CPUs and multithreading (in 5 of 11 sittings)
- Critical-section algorithms, monitors and semaphores (in 10 of 11 sittings)
- Deadlock with identical resources: the resource-counting bound (in 7 of 11 sittings)
- Deadlock conditions, prevention, safe and unsafe states (in 8 of 11 sittings)
- Page-replacement traces (FIFO, LRU, optimal, LFU) (in 11 of 11 sittings)
- Address translation (base and limit) and effective access time (in 7 of 11 sittings)
- Contiguous memory allocation: first fit, best fit, fragmentation (in 4 of 11 sittings)
- Thrashing, locality and the working-set model (in 6 of 11 sittings)
- Disk-head scheduling: total head movement (in 11 of 11 sittings)
- File allocation: counting disk operations (contiguous and linked) (in 8 of 11 sittings)
- File systems: directories, links, protection and free space (in 7 of 11 sittings)
Open the study guide 🔒What the Pass includes
The full guide comes with the Computer Engineering Pass, which is not on sale yet. The worked solutions stay free, with or without a Pass.
Like the solutions, the guide is AI-drafted, checked by scripts and against cited sources, and edited by the operator; it may contain errors. Last checked 6 November 2026.
Topics across the sittings
Topics that come up in more than one of the 11 sittings, taken from the headings of our worked solutions. Each cell links to that sitting's questions on the topic; a blank cell means no question heading in that sitting names it. Tick them off as you study in our topic checklist.
| Topic | Sittings | May 2013 | Dec 2013 | May 2014 | Dec 2014 | May 2015 | Dec 2015 | May 2017 | Dec 2017 | May 2018 | printed May 2019 | Dec 2019 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Deadlocks | 10 | Q7 | Q3 | Q2 Q7 | Q4 | Q3 Q4 | Q5 | Q5 | Q4 Q6 | Q4 | Q3 Q5 | |
| Protection | 10 | Q6 | Q7 | Q6 | Q3 | Q7 | Q7 | Q7 | Q7 | Q7 | Q7 | |
| CPU Scheduling | 8 | Q1 | Q1 | Q1 | Q1 | Q1 | Q1 | Q2 | Q1 Q6 | |||
| Disk Scheduling | 7 | Q6 | Q6 | Q3 | Q7 | Q6 | Q4 | Q4 | ||||
| Fragmentation | 7 | Q4 | Q4 | Q3 | Q7 | Q6 | Q2 | Q7 | ||||
| Monitors | 6 | Q2 | Q5 | Q5 | Q3 | Q6 | Q1 | |||||
| Paging | 6 | Q3 | Q2 | Q2 Q3 | Q2 | Q5 | Q2 | |||||
| Starvation | 5 | Q7 | Q4 | Q3 | Q1 | Q3 | ||||||
| Demand Paging | 4 | Q2 | Q2 | Q5 | Q2 | |||||||
| Effective Access Time | 4 | Q6 | Q2 | Q2 | Q3 | |||||||
| Page Replacement | 4 | Q5 | Q7 | Q3 | Q3 | |||||||
| Address Binding | 3 | Q5 | Q7 | Q7 | ||||||||
| Address Translation | 3 | Q2 | Q7 | Q2 | ||||||||
| File Allocation | 3 | Q4 | Q5 | Q4 | ||||||||
| Free-Space Management | 3 | Q4 | Q4 | Q4 |
Questions by sitting
December 2019
May 2018
- Question 1: Critical Section, Monitors, Real-Time Systems
- Question 2: CPU Scheduling
- Question 3: Locality of Reference, Thrashing, and Working Sets
- Question 4: Deadlocks and Disk Scheduling
- Question 5: Demand Paging and Page Reference Strings
- Question 6: File Systems — Access Control and Allocation Performance
- Question 7: Protection, Address Translation, and Scheduling Trade-offs
December 2017
- Question 1: CPU Scheduling and Starvation
- Question 2: Multiprogramming, Effective Access Time, Fragmentation
- Question 3: Page Replacement and Memory Allocation
- Question 4: Deadlock Feasibility and Disk Scheduling
- Question 5: File Allocation and the Critical-Section Problem
- Question 6: Deadlock States, Prefetching, and Multithreading
- Question 7: File Systems and Protection
May 2017
- Question 1: Dynamic-Priority Scheduling and SJF
- Question 2: Address Translation and Demand Paging
- Question 3: Critical Section Problem
- Question 4: File Allocation and Free-Space Management
- Question 5: Deadlocks
- Question 6: Disk Scheduling, Thrashing, Fragmentation
- Question 7: Priority Inversion, Protection, Multiprocessor Scheduling, Address Binding
December 2015
- Question 1: CPU Scheduling
- Question 2: Demand Paging and Effective Access Time
- Question 3: Paging and Page Replacement
- Question 4: Linked Allocation and Scheduler Design
- Question 5: Reliability and Deadlock Analysis
- Question 6: Monitor Design for Bounded Concurrent Access
- Question 7: Real-Time Classification, Disk Scheduling, Protection
May 2015
- Question 1: Generalized (Quadratic) Priority-Scheduling Formula
- Question 2: Memory Increase vs. CPU Utilization; Best-Fit and First-Fit Allocation
- Question 3: Monitors, the Readers-Writers Problem, and Deadlock vs. Starvation
- Question 4: Necessary Conditions for Deadlock; PID-Ordered Resource Waiting; Safe vs. Unsafe States
- Question 5: Real-Time Systems; Disk-Head Scheduling; Address Binding
- Question 6: Variant Round-Robin Scheduling; Page-Reference LRU Trace
- Question 7: Contiguous File Block Operations; Fragmentation; Disk Reliability; File Protection
December 2014
- Question 1: CPU Scheduling and Real-Time Priority
- Question 2: Paging and Virtual Memory
- Question 3: Protection, Security, and Disk Scheduling
- Question 4: Deadlocks, Starvation, and File Sharing
- Question 5: Critical Section Analysis, Monitors, and Semaphores
- Question 6: Virtual Memory, Effective Access Time, and Locality
- Question 7: Free Space Management, Resource Optimality, Shared Files, and Real-Time Classification
May 2014
- Question 1: CPU Scheduling and Real-Time Systems
- Question 2: Deadlocks — Disk Sharing, Prevention, and a Resource-Bound Proof
- Question 3: Working Sets, FIFO Paging, and Fragmentation
- Question 4: Disk Block Allocation and Free-Space Management
- Question 5: Monitor for a Priority-Scheduled Shared Plotter
- Question 6: Protection, Disk Scheduling, and Disk Redundancy
- Question 7: Deadlock Handling, Starvation, and Directory Structures
December 2013
- Question 1: CPU Scheduling and Multiprocessor Difficulty
- Question 2: Flawed Critical-Section Solution, Requirements, and Semaphores
- Question 3: Deadlock Possibility with a Single Resource Type
- Question 4: Fragmentation and Memory Allocation Policies
- Question 5: Multi-Resource Systems and Disk-Head Scheduling
- Question 6: File Sharing via Links and Access Control
- Question 7: Real-Time Scheduling, System States, Page Replacement, and Protection
May 2013
- Question 1: CPU Scheduling
- Question 2: Monitor for Bounded Concurrent Access
- Question 3: Disk Allocation Methods
- Question 4: Virtual Memory and Fragmentation
- Question 5: Priority Scheduling Parameters and Optimal Page Replacement
- Question 6: File Protection and Disk Scheduling
- Question 7: Disk Space Management, Multiprocessor Scheduling, and Deadlocks
Paper printed May 2019
- Question 1: CPU Scheduling — Generic Priority Formula & SRTF
- Question 2: Address Translation & Demand Paging
- Question 3: Scheduler Design Defects, Deadlock vs. Starvation, Effective Access Time
- Question 4: Linked-List File Allocation, Multi-Level Directories, Free-Space Management
- Question 5: Deadlock Conditions, Read-Only Files, Resource-Bound Safety
- Question 6: Disk-Scheduling Algorithms; Processes vs. Threads; Optimal CPU Scheduling
- Question 7: Priority Inversion, Security vs. Protection, Disk Fragmentation, FAT, Address Binding