GCSE · Computer Science · OCR · Spec J277
Operating system: memory management and multitasking
Browser, music, essay: three programs open at once, each needing room in memory. So who decided where each one went? Not you. Not the apps. The operating system.
Watch the RAM fill up
Open, open, open: who finds the space?
One person, one computer, one busy session. Each row is something you do, and what the operating system does in response. Step through and watch the list of what's in RAM grow.
Before each Next, call it: when you open something, who sorts out its place in RAM?
| Step | You | Operating system | In RAM | Open at once |
|---|---|---|---|---|
| 1 | Open a web browser | Allocates it space in RAM | Browser | 1 |
Output
Step 1: You clicked an icon. That's all you did. The browser's instructions need main memory, and the browser doesn't go hunting for a spot. The operating system allocates space in RAM for it.
Use Next to add one row at a time. The table keeps every row, so you can see RAM being shared out as the session goes on.
From memory management to multitasking
Reason it through
Why can you have lots of applications and documents open at the same time?
First link · your turn
Start with a single program. What do its instructions need?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Every app you open needs a space in memory. Something hands that space out, and it isn't the app.
What you need to know
- Memory management is one of the main jobs of an operating system.
- A program's instructions need main memory, also called RAM.
- The operating system allocates and manages that memory; programs don't help themselves to it.
Have a goYour mate announces, very confidently: "When I load a game, the game just grabs whatever memory it fancies." What would you tell them?
The game doesn't grab anything: the operating system allocates its memory.
It can look as if programs move themselves in, but allocating and managing main memory is the operating system's job, not the program's.
- Open a software application, and the operating system allocates space in RAM for it.
- The operating system also controls where each piece of data is stored in RAM.
- Memory space goes to all the programs currently in use.
Have a goA browser and a music app are running. You open a third application. How many programs now have memory space allocated to them?
Three.
It's tempting to count only the newest one, but the operating system allocates memory space to every program currently in use.
- It looks at the priority of tasks, and moves and manages them.
Have a goWhich single word in that last bullet tells you the operating system doesn't treat every task exactly the same?
Priority.
Priority means some tasks come before others, and the operating system looks at that when it moves and manages them.
- All of this lets you run more applications, or open more documents, at once.
- Having several running at the same time like that is called multitasking.
The big picture
Memory management is one of the main functions of an operating system. A program's instructions require main memory (RAM), and the operating system allocates and manages it. When a software application is opened, the operating system allocates space in RAM for it, and it controls where each piece of data is stored, giving memory space to the programs currently in use. It also looks at the priority of tasks, and moves and manages them. That is what lets a user run more applications, or open more documents, at once: multitasking.
Key points
Worked example
Problem
Improve this weak answer. Question: 'Describe how an operating system manages memory.' Answer: "Programs go into memory when you open them, so you can have loads open."
⚠ Watch out
Writing that programs 'go into' or 'find space in' memory by themselves. Name the operating system: it allocates RAM to each application when it opens, and it controls where each piece of data is stored.
Memory hook
Opening is asking; the OS does the allocating. Picture the operating system as RAM's seating planner: every app and every document you open gets a place the OS picks, which is how so many can be in at once.
Check yourself
Cover the page. Name three things the operating system does with RAM while you open and use applications, then say what that lets you do and what it's called.
Flashcards
(9)What is memory management?
What do a program's instructions require?
Which part of the system allocates main memory to programs?
What happens in RAM when you open a software application?
Apart from allocating space, what does the OS control in RAM?
Which programs does the OS allocate memory space to?
What does the OS look at when it moves and manages tasks?
Memory management is needed so that a user can do what?
Another name for main memory?
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 OCR GCSE Computer Science topics
How this lesson was checked. This OCR GCSE Computer Science (specification J277)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 3 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.