CPU

A CPU (Central Processing Unit) is the main processor of a computer—often called the computer’s “brain.”

What the CPU does

The CPU is responsible for:

  • Executing instructions from programs
  • Performing calculations (math and logic)
  • Controlling how data moves between memory, storage, and other hardware

In simple terms, everything your computer does passes through the CPU in some form.

Key parts of a CPU

  • Control Unit (CU) – Directs operations and tells other components what to do
  • Arithmetic Logic Unit (ALU) – Handles math and logical operations (add, compare, etc.)
  • Registers – Very fast, tiny memory inside the CPU for immediate data
  • Cache – High-speed memory that stores frequently used data to reduce delays

How a CPU works (basic cycle)

  1. Fetch an instruction from memory
  2. Decode what the instruction means
  3. Execute the instruction
  4. Store the result (if needed)

This happens billions of times per second.

Important CPU characteristics

  • Clock speed (GHz) – How many cycles per second it can perform
  • Cores – Independent processing units inside the CPU (e.g., quad-core)
  • Threads – Tasks a core can handle simultaneously
  • Architecture – Design type (e.g., x86, ARM)

Examples

  • Intel Core i7
  • AMD Ryzen 7
  • Apple M-series (M1, M2, M3)

Simple analogy

Think of the CPU as a chef in a kitchen:

  • Recipes = programs
  • Ingredients = data
  • Cooking steps = instructions
  • Finished dish = output