Theory
The articles follow the lecture order. Each one sums up the slides and exercises for that lecture and links to the exam questions that tested it.
- What an operating system isLecture 1
An operating system is software that manages a computer's resources for its users and applications. It plays three roles at once – referee, illusionist and glue – and is judged on reliability, security, portability and performance.
- The kernel abstractionLecture 2
How the kernel runs untrusted code safely: the process abstraction, dual-mode operation, and the three ways into the kernel – interrupts, exceptions and system calls – plus upcalls, the way back out to user programs.
- The programming interfaceLecture 3
The system calls programs use to manage processes (fork, exec, wait, signal), do I/O (open, read, write, close) and talk to each other (pipe, dup). The shell ties them together.
- Concurrency and threadsLecture 4
A thread is a single execution sequence that can be scheduled on its own. This article covers the thread abstraction, the pthread API, how threads are implemented and switched, and how Linux creates them.
- Address translationLecture 5
How a virtual address becomes a physical one: base and bounds, segmentation, paging, multi-level tables and the TLB – plus the process memory layout and the tricks translation makes possible, such as copy-on-write.
- Caching and virtual memoryLecture 6
Caches, demand paging and memory-mapped files, and how to choose which page to evict: FIFO, MIN, LRU, LFU and the clock algorithm. Ends with working sets, thrashing and Zipf workloads.
- SynchronisationLecture 7
Why threads that share memory need synchronisation, and the tools for it: locks, condition variables and semaphores. Includes how they are implemented with interrupts, spinlocks and atomic instructions, and the pthread versions you write on the exam.
- Multi-object synchronisation and deadlockLecture 8
What happens when a program has many locks on many cores: cache coherence, false sharing, lock contention, MCS locks and RCU – and deadlock, with its four conditions and the ways to prevent, avoid or detect it.
- SchedulingLecture 9
How the OS decides what runs next. Definitions of response time, turnaround and wait time; FIFO, shortest job first, round robin, max-min fairness and the multi-level feedback queue; and scheduling on multiprocessors.
- Storage and file systemsLecture 10
How file systems turn slow, block-based devices into named, persistent files. Disk and flash characteristics, the UNIX file API, and three designs compared: FAT, the Berkeley Fast File System and NTFS.
- SecurityLecture 12
Security theory – authorisation, authentication, encryption – and practice: real attacks such as the Morris worm and the Thompson compiler backdoor, and how buffer overflows on the stack and heap work.
- C for the examCourse page
The C you need to read and write on the exam, based on the course's own checklist: program structure, input and arguments, pointers, files, processes, threads and synchronisation – with short templates for each.