WEEK 2- THE CPU
WEEK 2- THE CPU
• The Central Processing Unit (CPU) is the most important part of a computer. It’s often
called the "brain" of the computer because it performs most of the processing inside the
computer.
• The CPU handles instructions from software and hardware, performs calculations, and
manages data flow between different parts of the computer.
The CPU processes data using a repeating cycle called the Fetch-Decode-Execute Cycle. This
cycle allows the CPU to retrieve and process instructions from programs.
1. Fetch: The CPU retrieves an instruction from the computer’s memory (RAM).
2. Decode: The CPU figures out what the instruction means. It breaks the instruction down
into steps that it can understand.
3. Execute: The CPU performs the task (e.g., adding numbers, moving data between
locations, or displaying something on the screen).
This cycle happens millions or even billions of times per second, enabling the CPU to handle
complex tasks quickly.
Factors Affecting CPU Performance
There are several factors that can affect how fast and efficient a CPU is:
1. Clock Speed:
o Clock speed is the rate at which the CPU can process instructions. It’s measured
in gigahertz (GHz), where 1 GHz equals 1 billion cycles per second.
o The higher the clock speed, the more instructions the CPU can handle per second,
making it faster.
2. Number of Cores:
o A CPU can have multiple processing units called cores. Each core can process its
own set of instructions at the same time.
o CPUs with multiple cores (e.g., dual-core, quad-core) can perform several tasks at
once (multitasking). More cores generally mean better performance, especially
when running multiple programs or doing heavy tasks like video editing or
gaming.
3. Cache Size:
o The cache is a small but extremely fast memory located inside the CPU. It stores
data and instructions that the CPU is likely to need soon.
o A larger cache means the CPU can access frequently used data more quickly,
without having to wait for it to come from the slower RAM. This improves
performance.
Types of CPUs
Different types of devices use different kinds of CPUs based on their needs:
Summary
• The CPU is the "brain" of the computer, responsible for executing instructions and
managing data flow.
• Key components of the CPU include the Control Unit (CU), Arithmetic Logic Unit
(ALU), and Registers.
• The CPU processes data using the Fetch-Decode-Execute cycle.
• CPU performance is determined by factors like clock speed, number of cores, and
cache size.
• Different devices use different types of CPUs based on their performance needs, with
desktop CPUs offering higher power and mobile CPUs focusing on energy efficiency.
• The CPU interacts with RAM and storage to access and store data, which affects the
overall performance of the computer.