Summary of Computer Basics and Functions

Basic Computer Components
  • Power Supply (PSU): Converts alternating current (AC) from a wall outlet into regulated low-voltage direct current (DC) power for internal components. High-quality units often feature an "80\text{ Plus}" efficiency rating system.

  • Microprocessor (CPU): Known as the brain of the computer, the Central Processing Unit interprets and executes instructions through two main parts: the Arithmetic Logic Unit (ALU), which handles mathematical operations, and the Control Unit (CU), which manages data flow. Modern CPUs utilize multiple "cores" to process independent instruction streams simultaneously and rely on various levels (L1, L2, and L3) of high-speed cache memory.

  • RAM (Random Access Memory): This is volatile, high-speed temporary storage. It is "volatile" because data is lost once power is removed. It holds the Operating System (OS) and active applications to ensure the CPU has fast access to data.

  • Storage Devices:

    • Hard Disk Drive (HDD): A mechanical storage device using rotating magnetic platters. It offers high capacity at a low cost but slower access speeds.

    • Solid State Drive (SSD): Uses non-volatile flash memory with no moving parts, providing significantly faster boot times and data transfer rates than traditional HDDs.

  • Motherboard: The main printed circuit board (PCB) that provides the electrical pathways, known as buses, for all components to communicate. It houses the CPU socket, RAM slots, and the chipset, which coordinates data movement between the processor and peripherals.

  • Input/Output (I/O) Devices: Peripherals that allow the user to interact with the machine. Input devices include keyboards, mice, and scanners; output devices include monitors (displays), printers, and speakers.

Computer Operation Basics
  • Information Processing Cycle: Computers operate through a four-step cycle: Input (gathering data), Processing (manipulating data via the CPU), Output (presenting information to the user), and Storage (saving data for future use).

  • Von Neumann Architecture: The fundamental design of most computers where the program instructions and data are stored in the same memory space.

  • Fetch-Decode-Execute Cycle: The standard process where the CPU fetches an instruction from memory, the CU decodes it into commands, and the ALU executes those commands.

Data Handling
  • Memory Swapping: When a program is launched, it is loaded from the Hard Disk or SSD into the RAM for execution.

  • Virtual Memory: If the physical RAM capacity (e.g., 8\text{ GB} or 16\text{ GB}) is full, the computer uses a portion of the storage drive as "Virtual Memory." This prevents crashes but leads to severe performance degradation because storage drives are much slower than RAM.

Software Overview
  • System Software: Includes the Operating System (OS), such as Windows, macOS, or Linux, and device drivers. It manages hardware resources and provides the platform for application execution.

  • Application Software: End-user programs designed to perform specific tasks, such as web browsers, office productivity suites, and media players.

  • Firmware: Specialized software stored on chipsets (like the BIOS or UEFI) to perform low-level hardware initialization during the boot process.

Binary System and Data Representation
  • Binary Logic: Computers use the base-2 numbering system. Data is represented by electrical pulses where an "on" state is a 1 and an "off" state is a 0.

  • Character Encoding: Since computers only understand numbers, standards like ASCII (8-bit) and Unicode (up to 32-bit) map binary patterns to letters, symbols, and emojis.

Measuring Units
  • The Hierarchy of Data: Data storage is calculated in powers of 2 (2^{10}):

    • 1\text{ Byte} = 8\text{ bits}

    • 1\text{ KB (Kilobyte)} = 1024\text{ Bytes}

    • 1\text{ MB (Megabyte)} = 1024\text{ KB}

    • 1\text{ GB (Gigabyte)} = 1024\text{ MB}

    • 1\text{ TB (Terabyte)} = 1024\text{ GB}

CPU and Data Transfer Speed
  • Clock Speed: Measured in Hertz (Hz). A processor running at 3.0\text{ GHz} performs 3.0 billion cycles per second.

  • Network Throughput: Data transfer in networks is typically measured in bits per second (bps), such as Megabits per second (Mbps). This is distinct from storage sizes, which use Bytes. To convert bits to Bytes, you divide the value by 8.