Quick Summary
- CPU is the microprocessor that executes all computer instructions
- Made of three main parts: Control Unit, ALU, and Registers
- Located on the motherboard as an integrated circuit chip
- Speed measured in gigahertz (GHz) – higher numbers mean faster processing
- Examples: Intel Core i5, AMD Ryzen, Apple M2 chip
What is the Central Processing Unit?
The Central Processing Unit (CPU) is like the head teacher of a school. Just as a head teacher makes decisions, gives instructions to other staff, and ensures everything runs smoothly, the CPU controls all activities in your computer.
When you type on your keyboard, click your mouse, or run a program, the CPU handles these tasks. It reads instructions from programs, performs calculations, and sends results to other parts of your computer.
Modern CPUs are very small – about the size of a N50 coin – but contain millions or even billions of tiny electronic switches called transistors. These transistors work together to process information at incredible speeds.
Components of the CPU
The CPU has three main parts that work together:
1. Control Unit (CU)
The Control Unit acts like a traffic controller at a busy Lagos junction. It directs the flow of data and instructions throughout the computer system. The CU does not perform calculations itself. Instead, it:
- Fetches instructions from computer memory
- Decodes these instructions to understand what needs to be done
- Sends signals to other parts of the CPU to execute instructions
- Controls timing of operations using the system clock
- Manages input and output operations
Think of the Control Unit as a conductor leading an orchestra. The conductor doesn’t play instruments but ensures everyone plays at the right time.
2. Arithmetic and Logic Unit (ALU)
The ALU is the part that does actual calculations and makes decisions. It performs two types of operations:
Arithmetic Operations: Addition (+), Subtraction (-), Multiplication (ร), Division (รท)
Example: When you use a calculator app to add N5,000 + N3,000, the ALU performs this calculation.
Logic Operations: These include AND, OR, NOT, and comparison operations (greater than, less than, equal to).
Example: When you search for “Economics AND WAEC” on Google, the ALU uses logic operations to find pages containing both words.
3. Registers
Registers are tiny, super-fast storage locations inside the CPU. They temporarily hold data that the CPU is currently working with. This is like keeping a calculator and notepad on your desk while solving maths problems – you don’t walk to a filing cabinet for each step.
There are different types of registers:
- Accumulator: Stores results of calculations from the ALU
- Program Counter: Keeps track of the next instruction to execute
- Instruction Register: Holds the current instruction being processed
- Memory Address Register: Stores memory addresses for reading or writing data
- Memory Data Register: Holds data being transferred to or from memory
How the CPU Works: The Fetch-Decode-Execute Cycle
The CPU follows a continuous cycle to process instructions:
- Fetch: The Control Unit retrieves an instruction from RAM (Random Access Memory)
- Decode: The Control Unit interprets what the instruction means
- Execute: The ALU or other CPU component carries out the instruction
- Store: Results are saved in registers or sent back to memory
This cycle repeats billions of times per second. A 3.0 GHz processor completes 3 billion cycles every second!
CPU Speed and Performance
Several factors affect CPU performance:
Clock Speed
Measured in gigahertz (GHz). A 2.4 GHz CPU can perform 2.4 billion operations per second. Higher clock speed generally means faster performance, though this isn’t the only factor.
Number of Cores
Modern CPUs have multiple cores – essentially multiple processors on one chip. A quad-core CPU has four processing units working simultaneously. This allows multitasking, like running Microsoft Word, Chrome browser, and music player at the same time.
Cache Memory
This is extremely fast memory built into the CPU chip. It stores frequently used data so the CPU doesn’t have to fetch it from slower RAM. Larger cache (measured in megabytes) improves performance.
Word Size
This refers to the number of bits the CPU can process at once. Most modern computers use 64-bit processors, which handle data more efficiently than older 32-bit systems.
| CPU Feature | Basic Computer | Advanced Computer |
|---|---|---|
| Clock Speed | 2.0 GHz | 4.0 GHz |
| Number of Cores | 2 cores (dual-core) | 8 cores (octa-core) |
| Cache Memory | 4 MB | 16 MB |
| Word Size | 64-bit | 64-bit |
| Typical Use | Office work, browsing | Gaming, video editing, programming |
Types of CPUs
Desktop CPUs
Powerful processors for desktop computers. Examples: Intel Core i7, AMD Ryzen 7. These provide high performance but consume more electricity and generate heat requiring cooling fans.
Mobile CPUs
Designed for laptops and tablets. They balance performance with energy efficiency to extend battery life. Examples: Intel Core i5 Mobile, Apple M1 chip.
Server CPUs
Heavy-duty processors for servers handling many users simultaneously. Examples: Intel Xeon, AMD EPYC. These have many cores and large cache memory.
Embedded CPUs
Small, specialized processors in devices like ATMs, traffic lights, and medical equipment. They’re designed for specific tasks rather than general computing.
Common Exam Mistakes
WAEC examiners report students frequently make these errors:
- Confusing CPU with computer: The CPU is ONE component inside the computer, not the entire system. Don’t write “CPU” when you mean the whole computer.
- Wrong function assignments: Students say Control Unit performs calculations – this is FALSE. Only the ALU does calculations. The Control Unit coordinates operations.
- Mixing up components: Don’t confuse registers (inside CPU) with RAM (separate component). Registers are much smaller and faster.
- Incomplete explanations: When asked to “explain,” don’t just “mention.” For example, don’t just write “ALU does calculations.” Add: “The ALU performs arithmetic operations like addition and subtraction, and logical operations like AND, OR, and comparisons.”
- Speed misconceptions: GHz measures cycles per second, not actual task completion speed. A 3 GHz quad-core CPU can outperform a 4 GHz single-core CPU for multitasking.
Practice Questions
Multiple Choice Questions
1. Which part of the CPU performs arithmetic calculations?
- a) Control Unit
- b) Registers
- c) Arithmetic and Logic Unit โ
- d) Cache memory
2. What does GHz measure in relation to CPU?
- a) Storage capacity
- b) Number of cycles per second โ
- c) Physical size of the CPU
- d) Number of cores
3. The CPU component that coordinates and controls all computer operations is the:
- a) ALU
- b) Register
- c) Control Unit โ
- d) Cache
4. Which of these is NOT a function of CPU registers?
- a) Storing intermediate calculation results
- b) Holding the current instruction
- c) Permanently storing user files โ
- d) Tracking the next instruction address
Essay/Theory Questions
1. Explain the three main components of the CPU and state TWO functions of each. (9 marks)
Examiner’s Tip: Use this structure: Name the component, briefly define it, then list two clear functions. Don’t just mention points – explain each function in a complete sentence.
2. Describe the fetch-decode-execute cycle with a suitable example. (6 marks)
Examiner’s Tip: Describe each of the four stages (Fetch, Decode, Execute, Store). Give a practical example like adding two numbers or opening a file. Show how data moves through each stage.
3. State FOUR factors that affect CPU performance and explain how each factor influences processing speed. (8 marks)
Examiner’s Tip: State the factor first (e.g., “Clock speed”), then explain its effect on performance. Use specific examples or comparisons (e.g., “A 3.0 GHz CPU completes more cycles per second than a 2.0 GHz CPU”).
Memory Aids
Remember CPU components with “CAR”:
- Control Unit – Controls operations
- ALU – Arithmetic and logic
- Registers – Rapid storage
Remember the processing cycle with “FDES”:
- Fetch instruction
- Decode instruction
- Execute instruction
- Store result
Remember ALU operations with “AALC”:
- Arithmetic operations (add, subtract, multiply, divide)
- And/or logic operations
- Logical comparisons (greater than, less than, equal to)
- Calculations and decisions
Related Topics
- Functions of CPU subunits (Control Unit, ALU, Registers in detail)
- Computer memory hierarchy (RAM, ROM, Cache)
- Input and output devices
- Motherboard and system components
- Computer performance and optimization