How Computers Work
A beginner-friendly path from bits to operating systems — the smallest mental model of a modern computer.
- Reading time
- ~24 min (+41 min optional)
- Level mix
- 15 beginner · 4 intermediate
This path is a guided tour from the smallest unit of information up to the operating system that runs your apps. Read the topics in order — each one builds on the previous one.
By the end you should be able to explain, in plain language, how a key press on your keyboard eventually becomes a character on your screen.
Roadmap
Loading progress...
Foundations
A bit is the smallest unit of information in computing — a single value that is either 0 or 1.
A way of writing whole numbers using only two digits, 0 and 1 — the native number system of digital computers.
The algebra of true and false — the simple rules (AND, OR, NOT) from which every digital decision is built.
Hardware
- TransistorOptional
The microscopic electronic switch that, replicated by the billions, forms every modern integrated circuit and CPU.
Tiny electronic circuits that implement boolean operations — the physical building blocks of every digital chip.
The component of a computer that fetches and executes instructions — the place where programs actually run.
Fast, temporary storage where a running program keeps the data it is actively using.
- CacheOptional
Small, fast memory close to the CPU that keeps recently or about-to-be-used data, hiding the slowness of main memory.
- BusOptional
A set of wires (or differential lanes) that carries data, addresses, or control signals between components inside a computer.
- ClockOptional
The steady electronic pulse that synchronizes a digital circuit — every "tick" advances the CPU and other components through their next step, and its rate is measured in hertz.
- MotherboardOptional
The main circuit board that connects and powers every component of a computer — CPU, memory, storage, and peripherals — and lets them communicate over shared buses.
- PeripheralOptional
Any device attached to a computer that isn't the core CPU and memory — keyboards, mice, displays, printers, drives, cameras — through which the machine takes input and produces output.
Storage
Long-term, non-volatile storage where files and programs are kept when the computer is off.
- SSDOptional
A storage device that keeps data in flash memory chips with no moving parts — far faster than a spinning hard drive, and now the default storage in most computers.
- HDDOptional
A storage device that records data magnetically on spinning platters read by a moving head — cheap per gigabyte and high-capacity, but far slower than an SSD.
- Flash MemoryOptional
Non-volatile memory that stores data by trapping charge in transistor cells — retaining it without power, and the technology inside SSDs, USB sticks, and phone storage.
Software
The system software that manages hardware and provides services and abstractions to all other programs.
- InterruptOptional
A hardware signal that pauses the CPU mid-instruction so the OS can react to an event — a keystroke, a packet, a timer tick.
- System CallOptional
The mechanism a user-space program uses to ask the OS kernel to do something privileged — open a file, send a packet, allocate memory, fork a process.