Operating systems explained
What sits between your program and the metal: the storage inside the processor, and the running programs the system juggles.
Every operating systems concept
CPU registers
The handful of tiny, fastest storage slots inside the processor.
OPEN LESSON
Processes
A running program: its own memory, its state and its ID.
OPEN LESSON
Cache lines and cache misses
Memory arrives in 64-byte lines, so neighbouring data is fast and scattered data is slow.
OPEN LESSON
Multi-core processors
Why chips gained cores instead of clock speed, and what limits the gain from more cores.
OPEN LESSON
Processes vs threads
Walled-off processes or threads sharing one memory: what each protects and what it costs.
OPEN LESSON
Stack vs heap memory
Frames that come and go with each call, and blocks you request and must give back.
OPEN LESSON
Virtual memory
Every process gets its own addresses, mapped page by page onto shared RAM and disk.
OPEN LESSON
Paging and page tables
How a page table turns the addresses a program uses into real places in RAM.
OPEN LESSON
Race conditions
Two threads update one counter and an update vanishes, unless a lock steps in.
OPEN LESSON
How booting works (BIOS, UEFI)
From power button to login: firmware, bootloader and kernel hand over in turn.
OPEN LESSON
Device drivers
The translator that lets an operating system talk to each piece of hardware.
OPEN LESSON
Linux file permissions
Who may read, write or run a file, and how rw-r----- becomes the number 640.
OPEN LESSON
Signals (SIGKILL, SIGTERM)
How the kernel interrupts a running program, and why SIGTERM asks while SIGKILL insists.
OPEN LESSON
Virtual machines and hypervisors
One physical computer divided into several complete, separate ones by a hypervisor.
OPEN LESSON
Containers vs virtual machines
Two ways to box up software: bring a whole operating system, or share one kernel.
OPEN LESSON
Compilers vs interpreters
Two routes from source code to a running program, and the mix most languages use.
OPEN LESSON
Endianness
Which byte of a number comes first in memory, in files and on the network.
OPEN LESSON