ENع
Operating systems · Inside the kernel: how one machine runs many programs safely

Operating systems

A university first course in operating systems: the kernel boundary and system calls, processes and threads, CPU scheduling, locks and synchronisation, deadlock, memory management, file systems, I/O and drivers, and virtualisation and isolation. Every lesson is an animated machine you can step through, then a short quiz, with Python simulations where they help.

9 modules53 lessons5 special topics58 available now
0 of 58 available lessons completed
Part of: More paths coming soon
Module 01 Beginner

The kernel and system calls

What the kernel is and how programs ask it for help. Start with the Software lesson on what an operating system does and the Hardware lesson on interrupts and I/O. The Linux lesson on how Linux boots covers the boot order; here we look at what the kernel builds before the first process starts.

Module 02 Beginner

Processes and threads

How the kernel creates, tracks and switches between running programs. The Linux lesson on processes and signals shows the commands; this module shows what happens inside.

Module 03 Intermediate

CPU scheduling

Who runs next, and for how long. Builds on the context switch from the processes module; the Hardware lesson on multicore processors explains why cache affinity matters. The Embedded course later applies these ideas to RTOS tasks; this module is the general theory.

Module 04 Intermediate

Synchronisation

Keeping shared data correct when threads run at once. The Software lesson on threads and concurrency shows the race and a simple lock; this module builds the tools underneath and the theory behind them. The Embedded course uses mutexes and semaphores on a microcontroller.

Module 05 Intermediate

Deadlock

When threads wait for each other forever, and how to prevent, avoid or recover from it. Builds on locks from the synchronisation module.

Module 06 Intermediate

Memory management

How the kernel gives every process its own memory. The Hardware lessons on the memory hierarchy, caches and virtual memory explain address translation, the TLB and page faults in the chip; this module covers what the kernel does with them.

Module 07 Advanced

Memory in practice

What happens when memory runs short, and the tricks real kernels use to share it.

Module 08 Advanced

File systems

How files and folders are laid out on a disk and kept safe through crashes. The Linux lessons on the file system and disks show the user's view. Journaling uses the same write-ahead idea as the Databases lesson on write-ahead logging and recovery.

Module 09 Advanced

I/O, virtualisation and isolation

Talking to devices, running whole machines inside machines, and keeping programs apart. Start from the Hardware lesson on interrupts and I/O for polling, interrupts and DMA. For containers, the Software lesson on containers and deployment compares them with virtual machines, and the Linux lesson on namespaces and cgroups shows how they are built.

Go deeper

Special topics

Stand-alone deep dives. Take them any time after the module they build on.