About Operating System
Operating Systems explains the software that sits between your programs and the hardware. It covers how the operating system runs many programs at once, shares memory between them, prevents them from blocking each other, and manages files and devices. This is a core computer science subject, and its ideas come up often in interviews and in later study.
What the units cover
- Introduction: what an operating system is, its functions as a resource manager, types such as batch, time-sharing and real-time systems, and system calls.
- Processes: process states, threads, CPU scheduling (preemptive and non-preemptive, with algorithms such as FCFS, SJF, priority and round robin), process synchronisation, the critical section problem and semaphores.
- Deadlocks: the four necessary conditions, and deadlock prevention, avoidance and detection.
- Device management: disk structure and disk scheduling.
- Information management: memory allocation (first fit, best fit, worst fit), fragmentation, swapping, file types, file allocation methods and file system security.
What the exam looks like
The May 2024 paper on this page (75 marks) asked short questions on real-time operating systems, hard and soft semaphores, preemptive versus non-preemptive scheduling, the four conditions for deadlock, and the purpose of system calls. Medium questions covered first fit, best fit and worst fit allocation, the critical section problem, and internal versus external fragmentation. The long questions asked for short notes on file allocation, swapping, threads, disk structure and disk scheduling; deadlock prevention and avoidance; process synchronisation and hardware solutions; the operating system as a resource manager and disk capacity calculation; and file types, file management and Unix file commands.
How to study it
Practise scheduling and memory allocation problems on paper: draw Gantt charts for CPU scheduling and calculate waiting and turnaround times, and work through first, best and worst fit on a sample memory layout. For theory, learn deadlock and synchronisation carefully; in the 2024 paper alone they appeared in both the short and the long sections.
Topics worth practising
- CPU scheduling algorithms with Gantt charts
- Deadlock conditions, prevention and avoidance (Banker's algorithm)
- Critical section problem and semaphores
- Memory allocation and fragmentation
- Disk scheduling and file allocation methods
The notes, book notes and previous year papers on this page cover every unit.
