Computer System Study Notes
Part 1: Central Processing Unit (CPU)
What is a CPU?
The Central Processing Unit is the "brain" of the computer that executes instructions and
performs calculations. It interprets and carries out program instructions through a continuous
cycle of operations.
Key Components
Control Unit (CU): Manages instruction execution, coordinates data flow between
components
Arithmetic Logic Unit (ALU): Performs mathematical calculations and logical operations
Registers: High-speed temporary storage locations within the CPU
Cache Memory: Fast memory that stores frequently accessed data and instructions
CPU Architecture Types
CISC (Complex Instruction Set Computing): Uses complex instructions that can perform
multiple operations
RISC (Reduced Instruction Set Computing): Uses simple, efficient instructions for faster
execution
Multi-core: Multiple processing units on a single chip for parallel processing
Key Specifications
Clock Speed: Measured in GHz, determines how many cycles per second the CPU can
execute
Cores: Number of independent processing units
Threads: Number of simultaneous instruction streams (often 2 per core with
hyperthreading)
Cache Levels: L1 (fastest, smallest), L2, L3 (slower, larger)
Instruction Cycle
1. Fetch: Retrieve instruction from memory
2. Decode: Interpret the instruction
3. Execute: Perform the operation
4. Store: Write results back to memory/registers
Performance Factors
Clock speed and architecture efficiency
Number of cores and threading capability
Cache size and memory bandwidth
Thermal design and power consumption