Skip to main content
SingaporeComputer ScienceSyllabus dot point

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.

Generated by Claude Opus 4.86 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

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:

  1. Fetch: the next instruction is copied from main memory into the CPU.
  2. Decode: the control unit works out what the instruction means.
  3. 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 3 GHz3\ \text{GHz} is about 33 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:

  1. Fetch: the next instruction is fetched from main memory into the CPU.
  2. Decode: the CPU works out what the instruction means and what action is needed.
  3. 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 2 GHz2\ \text{GHz} with 22 cores; Computer B has 3 GHz3\ \text{GHz} with 44 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. 2 GHz2\ \text{GHz} means about 22 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 (3 GHz3\ \text{GHz} versus 2 GHz2\ \text{GHz}) and more cores (44 versus 22), 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