The processor
A processor follows simple instructions, one at a time
A program is a list of small instructions. The processor does them one at a time, billions a second.
What is the processor actually doing when you click something? Say you ask a spreadsheet to add up a column. The program turns that into a list of very small instructions: get a number, get another, add them, keep the answer. The processor fetches one instruction, does it, then fetches the next. Round and round. Each step is trivial. The power comes from doing billions of them every second.
Cores and threads
A core does one thing at a time
This chip has 20 cores and 28 threads: 8 fast cores with two threads each, 12 small ones with one.
A modern processor is many processors in one package. This one has eight performance cores, large and fast. Each of them runs two threads, which is sixteen. It also has twelve efficient cores, smaller and cooler, with one thread each. That makes twenty cores and twenty-eight threads, and the operating system sees twenty-eight processors.
Clock speed
The GHz figure is how many billion steps it takes each second
Clock speed is measured in GHz: billions of steps a second. Compare it only between similar chips.
What does the gigahertz number on the box mean? Inside the processor is a clock: a steady beat. On every beat, the processor takes one step. One hertz is one beat a second. One gigahertz is a billion beats a second. So a chip marked three point five gigahertz takes three and a half billion steps a second, on each of its cores.
Clock speed · Going deeper · 1 of 2
Five billion steps a second, while it stays cool
Gigahertz counts steps per second. The box shows turbo speed, which needs cooling.
Every core steps to a clock. At five gigahertz the clock ticks five billion times a second, once every fifth of a nanosecond. In that time light travels six centimetres. And the speed is not fixed: this chip runs at three point four gigahertz at base and five point six at turbo, for as long as it stays cool.
Clock speed · Going deeper · 2 of 2
x86, x64 and ARM
x64 runs most PCs; ARM runs phones and Apple silicon; 32-bit stops at 4 GB.
Memory
Memory is the desk. Storage is the filing cabinet.
The processor works only on what is in memory. Storage keeps it; memory is fast and forgets at power-off.
Why does a computer need memory when it already has a drive? Think of an office. Storage is the filing cabinet. It holds everything, it keeps it when the power is off, but it is slow to reach. Memory is the desk. It holds only what is open right now, it is fast to reach, and it is cleared when the power goes off. Opening a program copies it from the cabinet to the desk. Saving copies your work back. And the processor can only work on what is on the desk.
Memory · Going deeper · 1 of 2
Cache: a small, fast memory inside the processor
The cache keeps what the processor is using right now, about 100 times closer than memory.
Memory · Going deeper · 2 of 2
The memory hierarchy: every step away from the processor costs time
Cache answers in a nanosecond, memory in a hundred, an SSD in a hundred thousand.
A processor can only work on data it can reach, and how far away the data is decides everything. The first level of cache answers in about a nanosecond. The second level takes four. The third, about thirty. Main memory takes a hundred nanoseconds. An SSD takes a hundred thousand. A hard disk takes ten million. If a nanosecond were a second, memory would answer in under two minutes, and the hard disk in four months.
Running out of memory
When memory is full, the disk stands in
The page file or swap holds what does not fit in memory, about a thousand times slower.
Here is what happens when programs want more memory than is fitted. The operating system takes four gigabytes. A browser with forty tabs takes six. A game wants eight, and only six are left. The last two gigabytes go to a page file on the SSD, which stands in for memory and is a thousand times slower.
Memory types
DDR4 and DDR5 do not mix
Memory comes in generations, DDR4 and DDR5. A board takes only one, and a notch enforces it.
Can you put any memory in any computer? No. Memory comes in generations. A DDR five module fits a DDR five slot, because the notch in the module lines up with the key in the slot. A DDR four module has its notch in a different place, so it will not go in. The board decides which generation you buy.
Memory types · Going deeper · 1 of 2
One generation per board, keyed by a notch
DDR4 and DDR5 do not interchange. Desktops use DIMMs, laptops use SODIMMs.
Memory comes in generations, and a motherboard takes exactly one. DDR3 is the oldest still in service. DDR4 has two hundred and eighty-eight pins on a desktop module and runs at one point two volts. DDR5 has the same number of pins, a different notch and a lower voltage, and is what new machines use.
Memory types · Going deeper · 2 of 2
Dual channel and ECC
Fit matched pairs in the right slots for dual channel. ECC corrects single-bit errors.
Finding the limit
The full gauge names the part
Read processor, memory, disk and graphics use before choosing an upgrade.
Before changing any part, read the gauges. This is a slow PC. Memory is at ninety-seven percent: full. So the disk is at a hundred percent, because it is being used as memory. The processor is at fourteen percent, nearly idle. A faster processor would change nothing here; more memory would.
Finding the limit · Going deeper
Which work needs which part
Ask slow at what: tabs need memory, exports need cores, games need graphics.
Lesson complete
You finished “The processor and memory”
Nicely done.