Primary storage refers to memory that is directly accessible by the CPU. It is used to hold the programs currently running and the data being processed. There are two main types of primary storage for OCR J277: RAM and ROM.
RAM is volatile primary storage — data is lost when the power is switched off. It is used to temporarily hold:
The CPU can read from and write to RAM. It is much faster than secondary storage but much slower than cache. The contents of RAM are cleared every time the computer is switched off.
More RAM means the computer can hold more programs and data in primary storage at once, reducing the need to swap data to slower secondary storage. If RAM is insufficient, the computer uses virtual memory (a portion of the hard drive), which is much slower and causes the computer to run sluggishly.
ROM is non-volatile primary storage — data is retained when the power is switched off. The CPU can read from ROM but cannot write to it (in normal operation).
In a computer, ROM typically stores the BIOS/bootstrap program — the small program that runs when the computer is first switched on, checks hardware (POST — Power-On Self Test), and loads the operating system from secondary storage into RAM.
In embedded systems, the entire program (firmware) is stored in ROM because it must be permanent and non-changeable. This is why washing machines and microwaves do not lose their programs when unplugged.
| Feature | RAM | ROM |
|---|---|---|
| Volatile/Non-volatile | Volatile (data lost on power off) | Non-volatile (data retained) |
| Read/Write | Read and write | Read only (normally) |
| Contents | Programs and data currently in use | BIOS / firmware / bootstrap loader |
| Changed by user? | Yes — constantly changed | No — fixed at manufacture |
| Speed | Fast | Fast but typically slower than RAM |
| Size | Larger (GBs) | Much smaller (MBs) |
When RAM is full, the OS uses part of the secondary storage (hard drive or SSD) as an extension of RAM. This is called virtual memory. While it prevents the computer crashing, it is significantly slower than real RAM because secondary storage access times are much higher. This is why computers slow down when many large programs are open.
8 questions · 22 marks · Submit to reveal mark schemes
Timed exam conditions. 10 questions · 10 marks · 10 minutes.
| Term | Definition |
|---|