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.
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
Physical RAM (8GB)
0GB / 8GBVirtual Memory (Disk)
0GB Used1. 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)
"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)
Identify Feature: The computer will use Virtual Memory.
Explain Partitioning: The OS will allocate a partitioned area of the secondary storage (hard drive/SSD) to temporarily act as extra RAM.
Apply Paging: Because the total request is 10GB but only 8GB is available, the OS will transfer inactive background data (e.g., portions of the OS or minimized browser tabs) out of the physical RAM and into the Virtual Memory partition.
Complete Process: This frees up physical space in the RAM, allowing the remaining files for the Game to be loaded directly to the CPU without crashing.