What is a CPU, and what does it do?
The CPU (central processing unit) is the part of a computer that processes data and carries out program instructions. It repeats the fetch-decode-execute cycle: fetch an instruction from memory, decode it, then execute it. Its main parts are the control unit, the arithmetic logic unit (ALU) and registers. Clock speed, number of cores and cache size affect performance. Example: A 3.0 GHz CPU completes one cycle per clock tick. How many cycles per second? 3.0 GHz = 3.0 × 10⁹ Hz Answer: 3 billion cycles per second.
The CPU is the processor at the heart of a computer system. In GCSE Computer Science, you need to know its components and the fetch-decode-execute cycle. The control unit manages the cycle, the ALU performs calculations and logical comparisons, and registers such as the program counter hold small amounts of data the CPU is using. Performance depends on clock speed, cores and cache.
Worked example
A CPU has a clock speed of 3.0 GHz. How many clock cycles does it complete each second?
- Recall that 1 Hz means one cycle per second.
- Recall that giga means 10⁹.
- Convert: 3.0 GHz = 3.0 × 10⁹ Hz.
- So the CPU completes 3 000 000 000 cycles per second.
Answer: It completes 3 billion (3.0 × 10⁹) clock cycles per second.
Want one-to-one support?
One-to-one online tuition can help you build confidence in your subject. Find a tutor who teaches your course.
Find a TutorLearn face to face in Glasgow
Prefer in-person lessons? Visit the ExpertTutor Glasgow Southside centre.
See the centre