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?

StepYouOperating systemIn RAMOpen at once
1Open a web browserAllocates it space in RAMBrowser1

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.

1 / 6

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.

Step 1 of 6: 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..

From memory management to multitasking

?

Reason it through

Why can you have lots of applications and documents open at the same time?

Link 1 of 4

First link · your turn

Start with a single program. What do its instructions need?

2
Locked — reveal the link above first
3
Locked — reveal the link above first
4
Locked — reveal the link above first

What do you really think?

How did the photo editor get its space?

Your browser and music app are already running. You open a photo editor, and moments later it has its own space in RAM.

How did it get there? Pick the idea closest to what you actually think.
How sure are you?

Your turn to write it

Describe it like you'd write it in a test

Sam opens a web browser, then a word processor, and edits two documents at the same time. Describe how the operating system manages memory so that Sam can do this. [4 marks]

0 words · your answer stays on this page and is not sent anywhere.

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

1Memory management is a main function of the operating system: a program's instructions require main memory (RAM), which the OS allocates and manages.
2When a software application is opened, the OS allocates space in RAM for it and controls where each piece of data is stored.
3The OS looks at the priority of tasks, and moves and manages them.
4Memory management lets a user run more applications, or open more documents, at once: multitasking.

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?
One of the main functions of an operating system: allocating and managing main memory (RAM).
What do a program's instructions require?
Main memory (RAM).
Which part of the system allocates main memory to programs?
The operating system.
What happens in RAM when you open a software application?
The operating system allocates space in RAM for it.
Apart from allocating space, what does the OS control in RAM?
Where each piece of data is stored.
Which programs does the OS allocate memory space to?
The programs currently in use.
What does the OS look at when it moves and manages tasks?
The priority of the tasks.
Memory management is needed so that a user can do what?
Multitask: keep several apps or documents going together.
Another name for main memory?
RAM.

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 posted

More OCR GCSE Computer Science topics

See the full OCR Computer Science curriculum →

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.