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 6
2 0010 0111 ADD box 7
3 0011 1000 STORE in box 8
4 0100 1000 OUTPUT box 8
5 0000 0000 STOP
6 0000 0111 the number 7
7 0000 0101 the number 5
8 0000 0000 empty (for the answer)
BoxWhat's in itCPU is working with
1LOAD 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.

1 / 8

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.

Step 1 of 8: 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..

Check your thinking

Is the 'brain' where things are kept?

People call the CPU the 'brain' of the computer. Handy nickname. It also leads plenty of people to the wrong idea about what the CPU actually does.

Which is closest to what you think the CPU does with a program?
How sure are you?

The whole system

Input, process, output, storage

Tick every job each part does. Careful: some do two jobs, and two of them do none of these three.

  • A Input (sends data in)
  • B Output (presents results)
  • C Storage (keeps data for later)
  1. Keyboard
  2. Microphone
  3. Monitor
  4. Speakers
  5. Touchscreen
  6. Headset with a microphone
  7. Hard drive
  8. USB memory stick
  9. CPU
  10. Main memory (RAM)

Memory and storage

?

Reason it through

If the CPU works from main memory, why aren't your programs just kept there?

Link 1 of 4

First link · your turn

What happens to everything in main memory (RAM) when you switch the computer off?

2
Locked — reveal the link above first
3
Locked — reveal the link above first
4
Locked — reveal the link above first

How fast?

Guess the speed

A CPU's clock speed is 3 GHz. How many cycles can it carry out each second? Give your answer in millions.

Your estimate

2500 million

0 million5000 million

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

1The CPU (central processing unit) processes data and carries out the instructions of programs; it is often called the 'brain' of the computer.
2A program is a sequence of simple instructions, such as adding two numbers, comparing two values or moving data, carried out one after another, very quickly.
3Main memory (RAM) holds the instructions and data the CPU is currently using. The CPU reads from main memory and can write results back to it.
4Instructions and data are stored in main memory as binary (0s and 1s), and every memory location has an address so the CPU can find what it needs.
5RAM is volatile: its contents are lost when the power goes off. Programs and files are kept on secondary storage and loaded into main memory when needed.
6Input, process, output, storage: input devices send data in, the CPU processes it using main memory, output devices present results, and storage keeps data for later.
7A CPU's speed is linked to its clock speed (cycles per second, measured in hertz; 1 GHz is a billion) and to its number of cores, each of which can carry out instructions independently.

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?
It processes data and carries out (executes) the instructions of programs.
What is a program, as far as the CPU is concerned?
A sequence of simple instructions (add, compare, move data) that it carries out one after another.
What does main memory (RAM) hold?
The program instructions and the data the CPU is currently using.
Can the CPU change what's in main memory?
Yes. As well as reading instructions and data from main memory, it can write results back to it.
In what form are instructions and data stored in memory?
As binary digits: 0s and 1s.
What is a memory address?
The label for a memory location, so the CPU can find the instruction or data it needs. It's not the same as what's stored there.
What does 'volatile' mean for RAM?
Its contents are lost when the power is switched off.
Where are programs and files kept when the computer is off?
On secondary storage, such as a hard drive, which keeps its contents without power.
What has to happen to a program before the CPU can run it?
It has to be loaded from secondary storage into main memory.
Name the four parts of the input, process, output and storage picture.
Input sends data in, process works on it, output presents results, storage keeps data for later.
Which part of that picture is the CPU?
Process. It processes the data, using main memory.
What does clock speed measure?
How many instruction cycles the CPU can carry out each second, measured in hertz.
How many cycles each second is 1 GHz?
1 billion (1,000,000,000).
What is special about each core in a CPU?
Each one can carry out instructions on its own.

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 posted

More KS3 Computer Science topics

See the full KS3 Computer Science curriculum →

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.

Helpful guides for parents and students