Operating systems explained

What sits between your program and the metal: the storage inside the processor, and the running programs the system juggles.

17 conceptsBeginner to Intermediate

Every operating systems concept

Operating systemsBeginner

CPU registers

The handful of tiny, fastest storage slots inside the processor.
OPEN LESSON
Operating systemsBeginner

Processes

A running program: its own memory, its state and its ID.
OPEN LESSON
Operating systemsIntermediate

Cache lines and cache misses

Memory arrives in 64-byte lines, so neighbouring data is fast and scattered data is slow.
OPEN LESSON
Operating systemsBeginner

Multi-core processors

Why chips gained cores instead of clock speed, and what limits the gain from more cores.
OPEN LESSON
Operating systemsBeginner

Processes vs threads

Walled-off processes or threads sharing one memory: what each protects and what it costs.
OPEN LESSON
Operating systemsIntermediate

Stack vs heap memory

Frames that come and go with each call, and blocks you request and must give back.
OPEN LESSON
Operating systemsIntermediate

Virtual memory

Every process gets its own addresses, mapped page by page onto shared RAM and disk.
OPEN LESSON
Operating systemsIntermediate

Paging and page tables

How a page table turns the addresses a program uses into real places in RAM.
OPEN LESSON
Operating systemsIntermediate

Race conditions

Two threads update one counter and an update vanishes, unless a lock steps in.
OPEN LESSON
Operating systemsBeginner

How booting works (BIOS, UEFI)

From power button to login: firmware, bootloader and kernel hand over in turn.
OPEN LESSON
Operating systemsBeginner

Device drivers

The translator that lets an operating system talk to each piece of hardware.
OPEN LESSON
Operating systemsBeginner

Linux file permissions

Who may read, write or run a file, and how rw-r----- becomes the number 640.
OPEN LESSON
Operating systemsBeginner

Signals (SIGKILL, SIGTERM)

How the kernel interrupts a running program, and why SIGTERM asks while SIGKILL insists.
OPEN LESSON
Operating systemsBeginner

Virtual machines and hypervisors

One physical computer divided into several complete, separate ones by a hypervisor.
OPEN LESSON
Operating systemsBeginner

Containers vs virtual machines

Two ways to box up software: bring a whole operating system, or share one kernel.
OPEN LESSON
Operating systemsBeginner

Compilers vs interpreters

Two routes from source code to a running program, and the mix most languages use.
OPEN LESSON
Operating systemsBeginner

Endianness

Which byte of a number comes first in memory, in files and on the network.
OPEN LESSON