StudyVault
Home Unit Overview Exam Technique Revision Techniques ← Previous Lesson Next Lesson →

← Back to Dashboard

Overlay:
0:00 / 0:00 Narration generated using AI text-to-speech.

Primary Storage (RAM, ROM & Virtual Memory)

Every time you open an app, load a game or start typing an essay, the processor needs somewhere to keep the instructions and data it is working on at that exact moment. That job belongs to primary storage, which is usually just called memory. It sits between the CPU and the much slower secondary storage, such as a hard drive or solid state drive.

The CPU can only work with data that is held in primary storage, because that is the only storage it is able to read from directly. Anything saved on secondary storage has to be copied into memory first before the processor can touch it. This is the whole reason computers need memory: without it, the CPU would have nothing to fetch and execute.

In a typical computer, primary storage is made up of two main types of memory: RAM and ROM. They sound similar and both sit close to the processor, but they do very different jobs, and exam questions love to test whether you can tell them apart.

RAM — the computer’s working memory

RAM stands for Random Access Memory. It holds the operating system, the applications you currently have open and the files you are actively using. When you launch a program, a copy of it is loaded from secondary storage into RAM so that the CPU can reach it quickly. The more RAM a computer has, the more programs it can keep running smoothly at the same time.

RAM has two defining characteristics. First, it can be both read from and written to, so its contents change constantly as you use the machine. Second, it is volatile, which means everything stored in it is lost the instant the power is turned off. That is why unsaved work vanishes if your computer suddenly shuts down.

A useful way to picture this is a desk. RAM is like the top of the desk, where you spread out the books and papers you are using right now so you can reach them quickly. Secondary storage is like the filing cabinet in the corner: it holds far more, but you have to get up and fetch things from it before you can work on them. A bigger desk lets you have more open at once, just as more RAM lets you run more programs.

Key Fact

RAM is volatile and can be both read from and written to. It stores the programs, data and operating system that are in use right now, and loses everything when the power is cut.

ROM — the start-up memory

ROM stands for Read Only Memory. As the name suggests, under normal use it can only be read from, not written to, so its contents stay fixed. ROM is non-volatile, which means it holds on to its data even when the computer is switched off.

The main purpose of ROM is to store the small set of start-up instructions the computer needs the instant it is switched on. This program is often called the bootstrap. It tells the computer how to check its hardware and then load the operating system from secondary storage into RAM so the machine can begin working.

When the power button is pressed, RAM is empty, so the CPU has nothing to run. It turns to ROM, which is non-volatile and still holds the bootstrap instructions. The CPU follows these instructions to test the hardware and then copy the operating system from secondary storage into RAM. Once the operating system is loaded, the computer is ready to use. Keeping these instructions in ROM guarantees they are always there, even after the machine has been unplugged for weeks.

Telling RAM and ROM apart

The clearest way to compare the two is by three features: whether they are volatile, whether they can be written to, and what they store. RAM is volatile, can be read and written, and holds whatever is running now. ROM is non-volatile, is normally read only, and holds the fixed start-up instructions. RAM is also usually much larger than ROM, because it has to hold everything currently in use, whereas ROM only needs room for a small boot program.

Key Fact

ROM is non-volatile and read only, and stores the boot-up (bootstrap) instructions. RAM is volatile and read-write, and stores the programs and data in current use.

Virtual memory

RAM is fast but limited in size. If you open too many programs, or a single program is very large, RAM can fill up completely. When that happens, the computer uses a technique called virtual memory. A section of the secondary storage — the hard drive or solid state drive — is set aside and treated as though it were extra RAM.

Here is how it works. Data in RAM that is not being used at that moment is moved out of RAM and written to this reserved area of secondary storage. That frees up space in RAM for the programs the user is actively working with. When the moved data is needed again, it is copied back into RAM, and other unused data may be swapped out to make room. This constant transfer of data between RAM and secondary storage is what keeps a full system running instead of freezing.

Secondary storage is far slower to read and write than RAM. Every time data is swapped between RAM and virtual memory, the CPU has to wait for the slow secondary storage to catch up. If RAM is very full, the computer can end up spending more time shuffling data back and forth than doing useful work, and everything feels sluggish. Fitting more RAM is the best fix, because the computer then rarely needs to fall back on virtual memory at all.

Key Fact

When RAM is full, the computer moves data that is not currently in use out to a reserved area of secondary storage called virtual memory, then swaps it back into RAM when it is needed again.

So the three types of memory work as a team. ROM gets the machine started, RAM gives the processor a fast place to work, and virtual memory acts as a safety net when RAM runs out. Understanding which is volatile, which can be written to, and what each one stores is the key to answering almost any question on primary storage.

Practice Questions

Test yourself on this lesson. Pick a question, write your answer, then get it marked.

AI feedback
AI feedback is guidance, not a final exam mark. If you disagree, your teacher's view is always the tie-breaker.
← Back to unit
Video

© 2026 StudyVault · About · FAQ · Copyright & IP · Privacy · Disclaimers

StudyVault Education Ltd · registered in England and Wales, company no. 17490559 · 71–75 Shelton Street, London WC2H 9JQ