You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
This lesson covers the two types of primary memory — RAM and ROM — their characteristics, differences, and roles within a computer system. This is a core topic in AQA and OCR GCSE Computer Science.
Primary memory (also called main memory or internal memory) is memory that the CPU can access directly. It is connected to the CPU via the system bus and is used to store data and instructions that are currently being used or about to be used.
There are two types of primary memory:
RAM is the main working memory of a computer. When you open a program, the operating system loads it from secondary storage (such as a hard drive or SSD) into RAM so that the CPU can access it quickly.
| Feature | Detail |
|---|---|
| Volatile | Data is lost when the power is turned off |
| Read and write | Data can be both read from and written to RAM |
| Speed | Much faster than secondary storage but slower than cache |
| Capacity | Typically 4 GB to 64 GB in modern computers |
| Purpose | Stores currently running programs, the operating system, and data being processed |
| Type | Full Name | Use |
|---|---|---|
| DRAM | Dynamic RAM | Used for main memory; cheaper but needs constant refreshing |
| SRAM | Static RAM | Used for cache; faster and does not need refreshing, but more expensive |
Exam Tip: When asked "What happens when a computer is turned off?", you must state that the contents of RAM are lost because RAM is volatile. ROM retains its contents because it is non-volatile.
ROM is a type of primary memory that stores data permanently. Unlike RAM, the data in ROM is not lost when the power is switched off.
| Feature | Detail |
|---|---|
| Non-volatile | Data is retained when the power is turned off |
| Read-only | Data can be read but generally not written to during normal operation |
| Speed | Fast (though typically not as fast as RAM for general use) |
| Capacity | Very small (usually just a few kilobytes or megabytes) |
| Purpose | Stores the BIOS/UEFI (bootstrap program) — the first instructions the computer runs when it is powered on |
ROM stores the BIOS (Basic Input/Output System) or UEFI (Unified Extensible Firmware Interface). This is a small program that:
Primary memory sits between the ultra-fast CPU registers and the much slower secondary storage. The diagram below shows the typical hierarchy from fastest (top) to slowest (bottom).
graph TD
A["Registers (inside CPU)"] --> B["Cache (L1 / L2 / L3)"]
B --> C["RAM (Primary Memory)"]
C --> D["Secondary Storage (SSD / HDD)"]
C --> E["ROM (BIOS / UEFI)"]
| Feature | RAM | ROM |
|---|---|---|
| Volatile? | Yes — data lost when power is off | No — data retained when power is off |
| Read/Write? | Read and write | Read-only (during normal use) |
| Contents | Currently running programs and data | BIOS/UEFI (boot-up instructions) |
| Size | Large (4–64 GB typically) | Very small (a few MB) |
| Speed | Fast | Fast |
| Can be changed? | Yes — contents constantly change | No — contents are fixed at manufacture (or rarely updated) |
When RAM is full, the operating system uses a technique called virtual memory:
Exam Tip: A common exam scenario: "A user notices their computer is running slowly when many programs are open. Explain why." Answer: RAM is full, so the OS is using virtual memory on slower secondary storage. The constant swapping (thrashing) causes poor performance. Adding more RAM would solve the problem.
Power On --> ROM (BIOS/UEFI) --> POST --> Load OS from disk --> RAM
|
CPU uses RAM
for all programs
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.