The CPU (Central Processing Unit) is the primary hardware component that executes instructions and performs calculations in a computer, often called the “brain” of the system. (ref: en.wikipedia)

Main Components

  • ALU (Arithmetic Logic Unit): Handles all mathematical operations (addition, subtraction, multiplication, division) and logical operations (comparisons like AND, OR, NOT). (ref: britannica)

  • Control Unit (CU): Fetches instructions from memory, decodes them, and coordinates the execution by directing other components. (ref: coursera)

  • Registers: Small, ultra-fast storage locations inside the CPU that temporarily hold data and instructions during processing. (ref: coursera)

  • Cache: High-speed memory built into or near the CPU to reduce the time needed to access frequently used data from main memory (RAM). (ref: digitalocean)

How It Works

The CPU operates using the fetch-decode-execute-store cycle:

  1. Fetch: Retrieve the next instruction from RAM.

  2. Decode: Interpret what the instruction means.

  3. Execute: Carry out the operation using the ALU or other components.

  4. Store: Write the result back to a register or memory.

Key Functions

  • Running applications and operating systems.

  • Performing calculations and data processing.

  • Managing input/output operations (keyboard, mouse, display, etc.)

  • Coordinating all hardware components via the motherboard.

Modern CPUs are built as microprocessors—single integrated circuit chips containing billions of transistors—and come in various architectures like x86 (Intel, AMD) for desktops/servers and ARM for mobile devices.
(ref: en.wikipedia)