Skip to main content

26 lessons · a working notebook

Operating Systems, one abstraction at a time

A visual, trace-first introduction to operating systems. Follow how one machine becomes isolated processes, virtual memory, safe threads, crash-resistant file systems, and distributed services.

310 minutes of reading. Leave time to run the exercises; this is not a timed course.

Six connected operating-system stages from CPU virtualization and virtual memory to concurrency, persistence, distributed services, and mixed trace practice.

What you’ll be able to do

  • Trace CPU virtualization cold: process state transitions, fork/exec/wait, traps, context switches, and scheduling metrics.
  • Calculate address translations across base-and-bounds, segmentation, linear and multi-level page tables, TLBs, and page faults.
  • Diagnose data races, choose between spin/futex locks, reason through Mesa condition variables and semaphores, and break deadlocks.
  • Explain I/O interrupts, DMA, RAID tradeoffs, inode paths, write-ahead journaling, Flash SSD FTLs, RPC/NFS/AFS, and gdb/valgrind debugging.

Before you start

  • Comfort reading small C snippets (pointers, structs, basic system calls) and shell commands.
  • Paper or scratch notes for working out timelines, bit splits, and interleavings before revealing the solution.
  • Optional Linux or macOS terminal with gcc, gdb, valgrind, or strace for hands-on systems debugging checks.

The syllabus

Read in order, or return to the task you need.