← All lessons
Systems
10 lessons you click through step by step
- How processes and threads workFork a shell, exec a program, and see why threads share memory while processes copy it
- How virtual memory worksSplit an address into page and offset, walk a page table, and see malloc take RAM one page at a time
- How file systems workSave a file into blocks, walk a path through directory tables, then watch free space break files apart
- How a CPU cache worksFind a byte through L1, L2 and L3, grow the data past each cache, and walk a matrix the fast way
- How context switching worksBlock a task on the disk, save and load its registers, then pick a time slice for one core
- How garbage collection worksMark what the roots can reach, sweep the rest, and leak memory through a forgotten listener
- How containers workStack an image from layers, then run it as a process the kernel fences off with namespaces and cgroups
- How embedded systems workRead a sensor on a tiny chip, then flip a pin
- How the kernel worksMake a system call and see why apps can't touch hardware
- How RAM worksStore bytes at addresses, then hit and miss the cache