The whole syllabus, in one place. Every topic is explained in simple with a real-life example, followed by practice questions from easy to hard.
An OS is the manager that sits between you and the hardware and shares the machine fairly.
Batch, multiprogramming, time sharing, real-time, distributed and more: each type fits a different job.
Services are what the OS offers; a system call is how a program asks for them.
How the OS code is organised: monolithic, layered or microkernel.
A virtual machine pretends to be a whole computer; UNIX and Windows are the two classic OS case studies.
A process is a program in execution, with its own memory, registers and state.
A process moves between New, Ready, Running, Waiting and Terminated during its life.
The PCB is the OS notebook for one process; context switching saves it and loads another.
A thread is a light-weight unit of execution inside a process; threads share memory.
Scheduling decides which ready process gets the CPU next, so the CPU is never wasted.
FCFS serves in arrival order; SJF serves the shortest job first and gives the least average waiting time.
Round Robin gives everyone a fixed time slice; priority scheduling serves the most important process first.
Real-time tasks repeat and must meet deadlines. RM and EDF are the two classic algorithms.
When two processes touch the same data at the same time, the result can go wrong. Mutual exclusion prevents that.
Software tricks and CPU instructions that let only one process enter the critical section.
Semaphores, monitors and event counters are higher-level tools to synchronize processes without busy waiting.
The two basic ways for processes to talk to each other.
A producer fills a buffer and a consumer empties it. They must not overflow, underflow or collide.
Many readers can read at the same time, but a writer needs the data all to itself.
Five philosophers, five forks: how to avoid deadlock and starvation when everyone needs two forks.
A set of processes is stuck forever, each waiting for something another one holds.
Prevention breaks one condition. Avoidance checks every request and grants it only if the system stays safe.
Let deadlocks happen, find them with an algorithm, then break them.
How the OS divides main memory among processes: addresses, fixed and variable partitions.
Wasted memory inside blocks (internal) and between blocks (external), and how compaction fixes it.
Break memory into frames and programs into pages, so a process need not sit in one continuous block.
Divide a program by meaning (code, data, stack) instead of equal-size pieces.
Run programs bigger than RAM by keeping only the needed pages in memory.
When RAM is full and a page fault occurs, which page do we evict?
How many frames a process really needs, and what happens when it does not get them.
What a file is, what we can do with it, and how its data is read.
How files are organised into folders, and how the file system is built in layers.
How the disk blocks of a file are placed on the disk.
How the OS tracks empty disk blocks and how a directory is stored.
How the disk arm is moved to serve requests, and which order minimises movement.
Formatting, the boot block, bad blocks, swap space and RAID for reliability.
How the CPU talks to devices: ports, controllers, polling, interrupts and DMA.