How does the processor run a program?
Understand the purpose and components of the CPU, the fetch-execute cycle, and the factors that affect CPU performance.
A focused answer to AQA GCSE Computer Science 3.4.3, covering the purpose and components of the CPU, the fetch-execute cycle, and the factors that affect CPU 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
AQA wants you to describe the purpose of the CPU and its main components, explain the fetch-execute cycle in order, and explain the factors that affect CPU performance.
Purpose and components of the CPU
The components work as a team: the control unit fetches and interprets instructions and tells the ALU what to do; the ALU does the arithmetic and logic; the registers hold the small amounts of data each step needs because they are far faster to reach than RAM.
The fetch-execute cycle
Factors affecting performance
These factors interact. A high clock speed only helps if the CPU is not waiting on memory, which is why cache matters; and extra cores only help when the work can be split into parts that run at the same time. The clock speed in hertz means cycles per second, so a 3 GHz processor performs three billion cycles per second.
How the components cooperate during the cycle
It helps to see the components and the cycle together. During fetch, the control unit reads the address of the next instruction and copies that instruction from RAM into the CPU, storing it temporarily in a register. During decode, the control unit interprets the bit pattern to work out the operation and operands. During execute, the control unit directs the work: if it is a calculation, the values are sent to the ALU, which adds, subtracts or compares them and puts the result in a register; if it is a data move, values are copied between registers and memory. Registers are central throughout because they are the only stores fast enough to keep up with the cycle.
Clock speed, cores and cache together
The three performance factors improve the cycle in different ways. A higher clock speed runs more fetch-execute cycles per second, so more instructions complete each second. More cores let several cycles run at once on separate instruction streams, multiplying throughput when work can be split. More cache keeps the instructions and data a core needs close by, so fewer cycles are wasted waiting for slow RAM. A balanced processor improves all three, because a fast clock is held back if the CPU constantly waits for memory, and extra cores help only when the workload can be divided.
Try this
Q1. Name the three stages of the fetch-execute cycle. [3 marks]
- Cue. Fetch, decode, execute.
Q2. State one factor that affects CPU performance and explain its effect. [2 marks]
- Cue. Higher clock speed means more cycles per second, so more instructions are executed per second.
Exam-style practice questions
Practice questions written in the style of AQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
AQA 20194 marksDescribe the fetch-execute cycle, naming the three stages in order and explaining what happens at each stage.Show worked answer →
Fetch: the CPU copies the next instruction from main memory (RAM) into the CPU. The address of the instruction comes from a register that tracks the position in the program, which then moves on to the next instruction.
Decode: the control unit works out what the fetched instruction means, that is which operation it is and what data or addresses it needs.
Execute: the CPU carries out the instruction, for example using the ALU to perform a calculation or comparison, or moving data between memory and registers. The cycle then repeats.
Markers reward the correct order (fetch, decode, execute) and a sentence on each stage; reversing decode and execute, or omitting the repeat, loses marks.
AQA 20224 marksTwo CPUs have the same clock speed. One has 2 cores and the other has 4 cores. Explain how the number of cores can affect performance, and explain why doubling the cores does not always double the speed.Show worked answer →
Each core can fetch, decode and execute its own stream of instructions, so a 4-core CPU can process up to four instruction streams at the same time, completing more work per second than a 2-core CPU when there are several tasks or a task split into parallel parts.
Doubling the cores does not always double the speed because some programs cannot be split into parts that run independently at the same time (they are sequential, where each step depends on the previous one). Cores may also have to wait for shared resources such as memory.
Markers reward the parallel-processing point and a valid reason performance does not scale perfectly (sequential dependencies or shared resources).
Related dot points
- Understand the difference between hardware and software, and the relationship between them in a computer system.
A focused answer to AQA GCSE Computer Science 3.4.1, covering the difference between hardware and software and the relationship between them in a computer system.
- Understand the difference between RAM and ROM, the purpose of each, and the need for virtual memory and cache.
A focused answer to AQA GCSE Computer Science 3.4.4, covering the difference between RAM and ROM, the purpose of each, and the need for virtual memory and cache.
- Understand the AND, OR and NOT logic gates, construct and interpret truth tables, and build and read simple logic circuits.
A focused answer to AQA GCSE Computer Science 3.4.2, covering the AND, OR and NOT logic gates, constructing and interpreting truth tables, and building and reading simple logic circuits.
- Understand the role of the operating system and its functions, and the purpose of common utility software.
A focused answer to AQA GCSE Computer Science 3.4.6, covering the role and functions of the operating system and the purpose of common utility software.
Sources & how we know this
- AQA GCSE Computer Science (8525) specification — AQA (2020)