Primary and Secondary Computer Memory

Chapter: Introduction to Computer

M1R5 / introduction-to-computer

Overview

Dive into computer memory, distinguishing between volatile primary memory (RAM, Cache) and non-volatile secondary storage (HDD, SSD, Pen Drive).

Computer Memory

Computer memory refers to the electronic holding place for instructions and data that the computer's processor can access quickly. It is crucial for the computer to function efficiently.

Units of Memory:

  • Bit: The smallest unit of data (0 or 1).
  • Byte: 8 bits (e.g., to store one character).
  • Kilobyte (KB): 1024 bytes.
  • Megabyte (MB): 1024 KB.
  • Gigabyte (GB): 1024 MB.
  • Terabyte (TB): 1024 GB.

Types of Memory:

  1. Primary Memory (Main Memory):

    Directly accessible by the CPU. It is faster but generally more expensive and has less capacity than secondary memory.

    • RAM (Random Access Memory): Volatile memory, meaning its contents are lost when the computer is turned off. It is used for temporary storage of data and programs currently being processed by the CPU. Types include SRAM (Static RAM) and DRAM (Dynamic RAM).
    • ROM (Read-Only Memory): Non-volatile memory, meaning its contents are retained even when power is off. It stores essential startup instructions (BIOS/UEFI firmware) that the computer needs to boot up.
    • Cache Memory: A small, very high-speed memory located between the CPU and main RAM. It stores frequently accessed data and instructions to speed up CPU access.
  2. Secondary Memory (Auxiliary Storage):

    Used for long-term, non-volatile storage of data and programs. It is slower than primary memory but offers much higher capacity and is less expensive per unit of storage.

    • Hard Disk Drive (HDD): Traditional magnetic storage device, stores data on spinning platters.
    • Solid State Drive (SSD): Uses flash memory, much faster and more durable than HDDs, with no moving parts.
    • USB Flash Drive (Pen Drive): Portable, removable flash memory storage.
    • Optical Discs: CDs, DVDs, Blu-ray Discs for storing data using lasers.
    • Memory Cards: Used in cameras, smartphones, etc.

Exam Tip: Understand the key differences between primary and secondary memory, especially volatility and speed. Be able to provide examples for each.