KS3 · Computer Science
What the CPU does
Your games, your music, this lesson: to the CPU, each one is just a long list of tiny instructions. Add this. Compare that. Let's watch it work.
Computing · Inside the computer
Watch a tiny program run
A made-up computer with 8 memory boxes. The binary patterns and their plain-English labels are invented for this lesson, so you can follow every address.
Before you press Next: what number do you think ends up in box 8?
1 0001 0110 LOAD box 62 0010 0111 ADD box 73 0011 1000 STORE in box 84 0100 1000 OUTPUT box 85 0000 0000 STOP6 0000 0111 the number 77 0000 0101 the number 58 0000 0000 empty (for the answer)
| Box | What's in it | CPU is working with |
|---|---|---|
| 1 | LOAD box 6 | — |
Output
Step 1: The CPU starts at box 1 and reads what's there: 0001 0110. In our mini computer that means 'load the number from box 6'. Notice: it has the instruction, not the number. Not yet.
Press Next and watch which box the CPU reaches into each time. Boxes 1 to 5 are the program. Boxes 6 to 8 are data.
Memory and storage
Reason it through
If the CPU works from main memory, why aren't your programs just kept there?
First link · your turn
What happens to everything in main memory (RAM) when you switch the computer off?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Follow a tiny program through memory, one instruction at a time.
What you need to know
- The CPU (central processing unit) processes data and carries out the instructions in programs. It's often called the computer's 'brain'.
- A program is a sequence of simple instructions, like add two numbers, compare two values or move data.
Have a goYour mate insists the CPU understands 'play the game' as one giant instruction and just gets on with it. What do you tell them?
Nope: a game is a long list of simple instructions.
The CPU never gets 'play the game'. It gets small steps like add, compare and move, and the game happens because there are loads of them.
- The CPU carries those instructions out one after another, very quickly.
- Main memory (RAM) holds the program's instructions and the data the CPU is using right now.
- The CPU reads instructions and data from main memory, and it can write results back there too.
- Instructions and data are both stored as binary, and each memory location has an address so the CPU can find them.
Have a goA memory box at address 4 contains 0000 0101. What's the box's address: 4, or 0000 0101?
4. The 0000 0101 is what's stored inside.
The address says where the box is; the binary is its contents. Mix them up and you'd send the CPU to the wrong box.
- RAM is volatile: switch the power off and its contents are lost.
- That's why programs and files live on secondary storage, and get loaded into main memory when they're needed.
Have a goPriya's laptop battery dies mid-essay. She last saved ten minutes ago. When it's back on, what has she still got?
The version she saved ten minutes ago.
The saved copy is on secondary storage, which keeps it without power. The last ten minutes were only in volatile RAM, so they vanished.
- Input devices send data in, the CPU processes it using main memory, output devices present results and storage keeps data for later.
- CPU speed is linked to clock speed (instruction cycles per second, in hertz) and to the number of cores.
The big picture
The CPU processes data and carries out program instructions, one simple instruction after another, very quickly. A running program's instructions and data sit in main memory (RAM) as binary, each location with an address, and the CPU reads from it and writes results back. RAM is volatile, so programs and files live on secondary storage and are loaded when needed. In input, process, output and storage, the CPU processes using main memory. CPU speed is linked to clock speed (hertz) and cores.
Key points
Worked example
Problem
CPU A has a clock speed of 3 GHz and 2 cores. CPU B has a clock speed of 2 GHz and 4 cores. What does each number tell you about how each CPU works?
⚠ Watch out
Thinking the CPU is where your programs and files are kept, because it's the 'brain'. It isn't. The CPU carries out instructions; main memory holds what it's using right now; secondary storage keeps things for later.
Memory hook
Storage KEEPS it. Memory HOLDS it. The CPU DOES it. And giga means a billion ticks every second.
Check yourself
No peeking: where is a game kept while your computer's off, what happens to it when you start it, and what does the CPU do with it? And what do '2.5 GHz' and '4 cores' each tell you?
Flashcards
(14)What does the CPU do?
What is a program, as far as the CPU is concerned?
What does main memory (RAM) hold?
Can the CPU change what's in main memory?
In what form are instructions and data stored in memory?
What is a memory address?
What does 'volatile' mean for RAM?
Where are programs and files kept when the computer is off?
What has to happen to a program before the CPU can run it?
Name the four parts of the input, process, output and storage picture.
Which part of that picture is the CPU?
What does clock speed measure?
How many cycles each second is 1 GHz?
What is special about each core in a CPU?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore KS3 Computer Science topics
How this lesson was checked. This KS3 Computer Sciencelesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 27 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.