Every computer is the same four things
A computer is a machine that takes in data, does something to it, and gives back a result — the input–process–output model. Storage is the fourth part, because most useful work needs to remember something between one job and the next.
That model applies to every computer, from the phone in your pocket to a weather supercomputer. What changes between them is scale, not structure.
| Part | What it does | Examples |
|---|---|---|
| Input | brings data in | keyboard, mouse, scanner, sensor, microphone |
| Processing | acts on the data | CPU, and for graphics a GPU |
| Output | presents the result | monitor, printer, speaker, actuator |
| Storage | keeps data for later | SSD, hard disk, USB drive, cloud |
| Memory | holds what is in use now | RAM, cache, registers |
Storage and memory are not the same word
Memory (RAM) is fast, small and volatile — switch off the power and its contents vanish. Storage is slower, much larger and non-volatile, so it survives a power cut. This is why unsaved work is lost when a machine crashes: it was in memory, not in storage. Examiners ask this every year.
Inside the CPU
The central processing unit is where instructions are actually carried out. It has three parts you need by name.
The control unit (CU) directs everything: it fetches each instruction, works out what it means, and sends signals telling the other parts what to do. The arithmetic and logic unit (ALU) does the calculating — additions, subtractions, comparisons, logical operations. And the registers are a handful of tiny, extremely fast storage locations inside the CPU itself, holding the values currently being worked on.
Three registers are named in the syllabus. The program counter holds the address of the next instruction. The instruction register holds the instruction currently being decoded. The accumulator holds the result the ALU has just produced.
Step through the stages. Notice that the execute stage is the only one where anything is calculated — the other three are moving instructions and data around, which is why bus speed matters as much as clock speed.
The fetch–execute cycle
A processor does one thing, over and over, billions of times a second: it fetches an instruction, works out what it means, does it, and stores the result. That loop is the fetch–execute cycle, and everything a computer does is made of it.
The three buses are the wires connecting the CPU to memory, and each carries one kind of thing. The address bus carries where in memory to look, and it is one-way — memory never sends an address back. The data bus carries the value itself, and it is two-way. The control bus carries the instruction to read or to write.
What makes one processor faster than another
Three things, and questions ask about all of them. Clock speed — how many cycles per second, measured in GHz. Number of cores — how many cycles can happen at the same time. Cache size — how much frequently-used data sits inside the CPU, saving the slow trip to RAM. A four-core 2 GHz chip usually beats a single-core 3 GHz one, which is why clock speed alone is a poor comparison.
The memory hierarchy
Storage is a trade-off between speed, size and cost, and no single technology wins on all three. So computers use several, arranged in a pyramid: the fastest is smallest and most expensive, the slowest is largest and cheapest.
Data is moved up the pyramid when it is needed and down when it is not. That movement is invisible to the user and is most of what makes a modern machine feel fast.
| Level | Speed | Typical size | Volatile? |
|---|---|---|---|
| Registers | fastest | a few bytes | yes |
| Cache | very fast | a few MB | yes |
| RAM | fast | 4–32 GB | yes |
| SSD | moderate | 256 GB – 2 TB | no |
| Hard disk | slow | 1–8 TB | no |
| Cloud / tape | slowest | effectively unlimited | no |
A computer has 8 GB of RAM and a 512 GB SSD. Explain why adding more RAM might speed it up more than replacing the SSD with a faster one.
- Programs and data must be in RAM to be worked on.The CPU cannot execute an instruction that is still on the disk.
- If RAM fills up, the operating system moves less-used pages out to the SSD — a process called paging or swapping.This is what keeps a machine running when it runs out of memory, at a heavy cost.
- The SSD is thousands of times slower than RAM, so every swap costs a long wait.The gap between RAM and any disk is far larger than the gap between two disks.
- More RAM means less swapping, removing the delay entirely rather than shortening it.A faster SSD only makes an expensive operation slightly less expensive; more RAM avoids it.
More RAM removes the need to swap; a faster SSD only makes swapping less slow.
Before you leave this chapter
- Input → Process → Output, with Storage alongside.
- CPU = control unit + ALU + registers. The CU directs, the ALU calculates.
- Fetch, decode, execute, store — repeated for every instruction a computer runs.
- Address bus carries where (one-way); data bus carries what (two-way); control bus carries read or write.
- Memory is volatile and fast; storage is non-volatile and slow. That difference is why unsaved work is lost.