Operating Systems#

An operating system is the program that lies to every other program β€” and the lies are so consistent that we call them abstractions. This page takes the dozen ideas you actually meet at work, gives each one a picture you already have in your head, and then shows the machinery underneath. Press Play on any animation to watch the idea move.

The whole subject answers one question: how do you let many untrusting programs share one machine, without any of them noticing, breaking each other, or bringing the machine down? Every mechanism below β€” processes, virtual memory, scheduling, file systems β€” is one answer, and every one costs something. There is no free abstraction; there is only a bill you are willing to pay.

14 Topics • Mental Models, Interactive Animations & Worked Questions
Unit 1

Processes & Scheduling#

How the OS turns a few CPUs into many running programs.

Unit 2

Memory#

How every process gets its own private memory, and what that illusion costs.

Unit 3

Concurrency & Communication#

Coordinating threads and processes that share data, without corrupting it or freezing.

Unit 4

Storage, I/O & Isolation#

Persistent files, talking to devices, and isolating whole systems from each other.