GCSE · Computer Science · AQA · Spec 8525
RAM
You've typed two pages. The lights flicker. The screen goes black. Where did your work go? It was sitting in RAM, and RAM has one big weakness.
One session, from opening an app to switch-off
Your essay app and your essay file are sitting on secondary storage. Nothing about them is in RAM yet, and the CPU isn't working on them.
Scrub through slowly. At every stage, ask: where is my essay right now?
AQA GCSE Computer Science (8525), section 3.4.5.
Power cut: predict, then check
Think about where each piece of your work actually is.
Power cut! You saved your essay at 3 pm, then typed another paragraph. When the power comes back and you open the essay, what will you find?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Follow one working session from opening an app to the power going off, and see exactly where your work sits at every moment.
What you need to know
- RAM (random access memory) is temporary memory. It holds the data and instructions the CPU needs while the computer is running.
- What's in RAM is what's being processed right now: the apps in use and the data they're working on.
- When you open an app, it's loaded from secondary storage into RAM.
Have a goJay is certain: “When I open a game, the CPU just runs it straight off secondary storage. RAM's only a spare.” Where does the game actually go when he opens it?
It's loaded from secondary storage into RAM.
RAM isn't a spare: an app in use is loaded into RAM, because that's where the data and instructions being processed are kept.
- Why bother? The CPU can access RAM faster than files stored on secondary storage.
- RAM has read and write access: data can be read from memory addresses and written to them.
Have a goYou type a sentence, then delete one word. Is RAM being read from, written to, or both?
Both.
Your changes are written to memory addresses in RAM, and the CPU reads data from RAM as it works. That's exactly what read and write access allows.
- RAM is volatile. It needs a constant supply of power to keep the data stored on it.
- Switch off, and all the data and instructions in RAM are lost. Unsaved work goes with them.
- Not enough RAM? Virtual memory temporarily moves data and instructions that aren't actively being used out to secondary storage.
- They're moved back into RAM when the CPU needs them again.
Have a goPut these in order: (1) the CPU needs the data again, (2) RAM runs short, (3) inactive data is moved to secondary storage, (4) the data is moved back into RAM.
2, 3, 1, 4.
Virtual memory is only used once there isn't enough RAM, and data only comes back when the CPU needs it, so 'moved back' can't come before 'needed again'.
- Using virtual memory slows the computer down, because secondary storage is slower for the CPU to access than RAM.
The big picture
RAM is temporary memory that holds the data and instructions the CPU needs while the computer is running. Apps are loaded into it from secondary storage when they're in use, because the CPU can access RAM faster. RAM has read and write access, and it's volatile: cut the power and everything in it is lost. When there isn't enough RAM, virtual memory moves inactive data out to secondary storage and back when it's needed, which slows the computer down.
Key points
Worked example
Problem
Leila has a video editor and a web browser open, and her computer is using virtual memory. She's been editing for twenty minutes without touching the browser. When she clicks back to the browser, there's a pause before it responds. Explain the pause.
⚠ Watch out
Mixing up memory and storage, for example saying a file is 'saved in RAM'. RAM only holds what's in use while the computer runs; a saved file is on secondary storage, which keeps it when the power is off.
Memory hook
RAM is your desk, secondary storage is the filing cabinet. You work at the desk because it's quick to reach. Run out of desk space and papers go back in the cabinet, which is slow. And at switch-off, the desk is cleared.
Check yourself
Cover the page. Follow one app from opening to switch-off, saying where its data is at each step. Then check against the session at the top.
Flashcards
(9)What does RAM stand for?
What does RAM hold?
What does it mean to say RAM is volatile?
Why are applications loaded into RAM when they're in use?
What does 'read and write access' mean for RAM?
What triggers a computer to start using virtual memory?
Virtual memory: what moves, and where to?
Why does using virtual memory slow a computer down?
RAM or secondary storage: which keeps its data when the power is off?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 4 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.