Primary Memory

How the computer holds data while it is working on it.

Think of it like: The Desk & The Filing Cabinet

Imagine you are working in an office.

The Desk (RAM)

This is where you put the files you are working on right now. It is small, but super fast to reach. At the end of the day, you wipe it clean.

The Filing Cabinet (Secondary Storage)

This is where you store everything else. It is huge, but slower to find things. Files stay there safely even when you go home.

Common Mistake: Never say you have "more memory" on your phone to store photos. Photos go in Storage (Filing Cabinet), not Memory (Desk).
The Examiner's Eye: The "Memory Generalisation Trap": Never just write the word "Memory" in an exam answer. You will score 0 marks. You must specifically write RAM or ROM.

RAM (Random Access Memory)

The computer's "working memory".

  • Stores Programs & OS currently in use.
  • Volatile: Needs power to hold data. Pull the plug -> Data is gone. (Like wiping the desk).
  • Read/Write: The CPU can change the contents easily.

ROM (Read Only Memory)

The computer's "startup kit".

  • Stores the Bootstrap / BIOS instructions to turn the computer on.
  • Non-Volatile: Keeps data without power. (Like a carved stone).
  • Read Only: Cannot be changed by the user.

Cache Memory

Extremely fast memory located closer to the CPU than RAM.

  • Stores frequently used data/instructions.
  • Faster than RAM, slower than registers.
  • Very expensive, so small capacity (MBs).
  • Level 1 (L1): Newest/Fastest/Smallest.
  • Level 2 (L2): Slower/Larger.
  • Level 3 (L3): Shared between cores.

Primary vs Secondary Storage

Feature Primary (RAM/ROM) Secondary (HDD/SSD)
Direct Access Yes (By CPU) No (Must load to RAM)
Speed Very Fast Slower
Capacity Small (GBs) Large (TBs)
Volatility RAM (Volatile), ROM (Non-V) Non-Volatile (Permanent)

RAM & Virtual Memory Simulator

Open applications to fill up the RAM. Watch what happens when it gets full!

Launch Apps

System Status
System Idle.

Physical RAM (8GB)

0GB / 8GB

Virtual Memory (Disk)

0GB Used

1. What does it mean when we say RAM is volatile?

2. Why does using Virtual Memory cause the computer to slow down noticeably?

3. Which of the following best describes the exact purpose of ROM?

Written Exam Scenario (AO2/AO3)

1 / 3

"A gamer has exactly 8GB of RAM. They load an OS (3GB), a Game (6GB) and then attempt to open a Web Browser (1GB). Identify the software feature the computer will use to prevent a crash, and explain exactly how it operates in this scenario." (4 marks)