What does the CPU do, and how does the fetch-execute cycle run a program?
Describe the role and main parts of the CPU, the fetch-execute cycle, and how clock speed and cores affect performance
A focused answer to the O-Level Computing point on the CPU. The role of the processor, its main parts, the fetch-execute cycle that runs every instruction, and how clock speed and the number of cores affect performance.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
SEAB wants you to describe the role and main parts of the CPU, the fetch-execute cycle by which it runs every instruction, and how clock speed and the number of cores affect performance. The central idea is that the CPU is the worker of the computer, repeatedly fetching, decoding and executing instructions, and that doing this faster or in parallel makes the computer quicker.
The answer
The role of the CPU
The CPU (Central Processing Unit), or processor, is the part of the computer that carries out instructions. It fetches each instruction of a program from memory and executes it, processing data and controlling the rest of the machine. It is often called the brain of the computer.
Main parts of the CPU
At O-Level you should know the CPU contains:
- The control unit (CU), which directs the operation of the processor and tells other parts what to do.
- The arithmetic logic unit (ALU), which performs calculations and logical comparisons.
- Registers, which are tiny, very fast stores inside the CPU for holding instructions and data being worked on right now.
The fetch-execute cycle
A program is a list of instructions in memory. The CPU runs them using the fetch-execute cycle, repeated over and over:
- Fetch: the next instruction is copied from main memory into the CPU.
- Decode: the control unit works out what the instruction means.
- Execute: the CPU carries it out (for example the ALU does a calculation, or data is moved).
Fetch -> Decode -> Execute -> Fetch -> Decode -> Execute -> ...
The cycle repeats billions of times per second.
Clock speed
The clock speed measures how many cycles the CPU performs each second, in hertz. A speed of is about billion cycles per second. A higher clock speed means more instructions processed per second, so the computer is faster (other things being equal).
Cores
A core is a processing unit within the CPU that can run its own fetch-execute cycle. A CPU with several cores can work on several instructions or tasks at the same time (in parallel), doing more work overall, especially for software designed to use multiple cores.
Examples in context
Example 1. Opening an app. Tapping an app sends its instructions to memory, and the CPU fetches, decodes and executes them in turn to draw the screen and respond to taps. A phone with a faster CPU runs this cycle quicker, so the app opens and responds more smoothly.
Example 2. Editing video. Video editing splits work across many CPU cores, so each core processes part of the footage at once. This is why a computer with more cores renders video faster than one with the same clock speed but fewer cores, showing the benefit of parallel processing.
Try this
Q1. Name the three stages of the fetch-execute cycle. [3 marks]
- Cue. Fetch, decode, execute.
Q2. State what clock speed measures. [2 marks]
- Cue. The number of cycles the CPU performs per second, measured in hertz (for example GHz, billions per second).
Q3. Explain how more cores can make a computer faster. [2 marks]
- Cue. Each core can run its own fetch-execute cycle, so several instructions or tasks are processed in parallel, doing more work at once.
Exam-style practice questions
Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Original4 marks(a) State the role of the CPU in a computer. (b) Describe the three stages of the fetch-execute cycle.Show worked answer →
(a) The CPU (Central Processing Unit) is the part of the computer that carries out instructions. It processes data by fetching and executing the instructions of a program, making it the main controller and worker of the computer.
(b) The three stages of the fetch-execute cycle:
- Fetch: the next instruction is fetched from main memory into the CPU.
- Decode: the CPU works out what the instruction means and what action is needed.
- Execute: the CPU carries out the instruction (for example a calculation or moving data).
The cycle then repeats for the next instruction, over and over, very quickly.
Markers reward the CPU as the part that processes and carries out instructions, and the fetch, decode, execute stages repeating.
Original5 marksTwo computers are compared. Computer A has a clock speed of with cores; Computer B has with cores. (a) Explain what clock speed measures. (b) Explain how having more cores can improve performance. (c) State which computer is likely to be faster and why.Show worked answer →
(a) Clock speed measures how many cycles the CPU performs per second, in hertz. means about billion cycles per second. A higher clock speed means more instructions can be processed each second.
(b) Each core is effectively a processing unit that can carry out its own fetch-execute cycle. More cores let the CPU work on several instructions or tasks at the same time (in parallel), so more work is done overall, especially for software that can split its work across cores.
(c) Computer B is likely to be faster: it has both a higher clock speed ( versus ) and more cores ( versus ), so it can process more instructions per second and do more in parallel.
Markers reward clock speed as cycles per second, more cores allowing parallel processing, and Computer B being faster on both counts.
Related dot points
- Distinguish hardware from software, and system software (operating system) from application software, with examples
A focused answer to the O-Level Computing point on hardware and software. The difference between physical hardware and programs, the role of the operating system as system software, and how it differs from application software.
- Distinguish RAM, ROM and secondary storage, explaining volatility and the purpose of each in a computer
A focused answer to the O-Level Computing point on memory and storage. The difference between RAM and ROM, what volatile means, the role of secondary storage, and why a computer needs all three.
- Classify peripherals as input, output or storage devices, and explain the input-process-output model of a computer system
A focused answer to the O-Level Computing point on peripherals. Classifying devices as input, output or storage, the input-process-output model with feedback, and choosing suitable devices for a task.
- Perform binary addition showing carries, and explain overflow when a result exceeds the fixed width of a register
A focused answer to the O-Level Computing point on binary addition. Adding binary numbers column by column with carries, checking the result against denary, and understanding overflow in a fixed-width register.
- Define a computer network, distinguish a LAN from a WAN, and state the benefits and drawbacks of networking computers
A focused answer to the O-Level Computing point on networks. What a computer network is, the difference between a LAN and a WAN, common networking hardware, and the benefits and drawbacks of connecting computers.