GCSE · Computer Science · Eduqas · Spec C500QS

OS CPU management

Your computer seems to run a dozen things at once. On one processor core, it genuinely can't. So how does it pull the trick off?

Computer Science · Operating systems

Run the queue: who gets the processor next?

One processor core can run only one process at any one instant. So the scheduler (the part of the operating system that picks who goes next) hands out turns. Each turn is a time slice: a fixed amount of processor time. Ready processes wait in a queue.

Round robin, with a time slice of 2 units. The ready queue starts as A, B, C (front first). A needs 6 units, B needs 2 and C needs 4. Slice 1 is shown. After that, you make the calls.

SliceRunningTime leftQueue after
1A4B, C, A

Step 1. A is at the front, so A gets the first time slice: 2 units. It needed 6, so 4 are left. It hasn't finished, so it goes to the back of the queue.

Step 1 of 6Called right: 0 of 4

Round robin: every process in the queue gets the same time slice, in turn. If it hasn't finished when the slice ends, it joins the back of the queue.

One core, one process

What's really happening on one core?

You have a music player, a web browser and a homework document all open. The computer has one processor core.

Which of these is closest to what you think is going on?
How sure are you?

Two ways to give out turns

Round robinvsFirst come, first served

Both ways take processes from a queue. Spot where they part company.

Focus

Who goes next?

Round robin

The process at the front of the queue, in turn

First come, first served

The process that arrived first

The insight

First come, first served is all about order of arrival. Round robin is all about everyone getting a turn.

How long it runs

Round robin

One time slice, then it's the next process's turn

First come, first served

Until it finishes or has to wait

If it isn't finished

Round robin

Goes to the back of the queue

First come, first served

Nothing changes: it keeps the processor until it finishes or has to wait

Sharing processor time

Round robin

Every process in the queue gets the same time slice, in turn

First come, first served

Processes later in the order wait until those ahead finish or have to wait

Priority: who jumps the queue?

The scheduler is using priorities this time. Commit to an answer before you check.

Process X arrived first but has a low priority. Process Y arrived later with a high priority. Both are ready. Which one is given the processor first?

Why hand the processor on?

?

Reason it through

Why does the operating system give the processor to another process when the running one has to wait?

Link 1 of 4

First link · your turn

A running process asks for data from a slow device. What happens to that process?

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

Pull it together

Write the answer, then mark it

The operating system manages the processor. Describe how it does this, and explain why it does it. [6 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.

How the operating system shares one processor between many processes

What you need to know

  • Managing the CPU is one of the operating system's jobs: keep the processor busy while sharing its time fairly.
  • A process is a program that is currently being executed by the computer.
  • One processor core can execute only one process at any one instant, so ready processes take turns and every task makes progress.
  • Have a goYour mate says her laptop has one core and 'runs twenty apps at the exact same moment'. In one sentence, what's wrong with that?

    One core can run only one process at any one instant. The others are taking turns.

    More than one process can be ready, but they share the core by taking turns, not by all running at once.

  • The scheduler is the part of the operating system that decides which process gets the processor next.
  • A time slice is the fixed amount of processor time a process gets before the processor goes to another process.
  • Have a goThe time slice is 3 units. A process needs 7 units in total and has just used one full slice. How much more does it need?

    4 units.

    A time slice is a fixed amount of processor time, so one full slice takes 3 off the 7, not the lot. The process isn't finished.

  • Processes that are ready and waiting are held in a queue until they are given processor time.
  • Round robin gives every process in the queue the same time slice in turn; unfinished ones go to the back.
  • First come, first served gives out the processor in order of arrival; each process runs until it finishes or has to wait.
  • Have a goFirst come, first served. X arrives first, then Y, then Z, and Z is tiny. Who is given the processor first?

    X.

    Processes are given the processor in the order they arrive, however small the later ones are. X then runs until it finishes or has to wait.

  • With priorities, a higher-priority process gets the processor before, or more often than, a lower-priority one.
  • If a running process has to wait for a slow device, the operating system can give the processor to another ready process.

The big picture

One processor core can run the instructions of only one process at any one instant, so the operating system manages the processor by letting ready processes take turns. The scheduler picks who goes next, a time slice limits each turn, and ready processes wait in a queue. Round robin, first come first served and priorities are ways of deciding the turns, and handing the processor on when a process has to wait keeps it busy while sharing its time fairly.

Key points

1One core, one process at any instant: multitasking is the operating system handing out turns.
2The scheduler picks the next process, a time slice limits the turn, and the queue holds everyone else.
3Round robin: same time slice for all, unfinished to the back. First come, first served: order of arrival, no cut-off.
4A higher priority means the processor sooner, or more often.
5When a process must wait, hand the processor on. The purpose: keep it busy and share it fairly.

Worked example

Problem

Three processes are ready and arrive in the order X, Y, Z. X needs 4 units of processor time, Y needs 2 and Z needs 2. No process has to wait for a device. Under first come, first served, then under round robin with a time slice of 2 units, at what time does each process finish?

⚠ Watch out

Mixing up round robin and first come, first served. Round robin cuts a process off when its time slice ends and sends it to the back of the queue. First come, first served never cuts it off: it runs until it finishes or has to wait.

🧠

Memory hook

Pick, Slice, Queue. The scheduler PICKS, the time SLICE limits, the QUEUE holds the rest. Unfinished? Back of the line.

✓

Check yourself

Cover the page. What does the scheduler decide, what does a time slice limit, and where does an unfinished process go under round robin? Why not leave the processor idle while a process waits?

Flashcards

(11)
What is a process?
A program that is currently being executed by the computer.
How many processes can one processor core execute at any one instant?
Only one, so ready processes must take turns.
What is the scheduler?
The part of the operating system that decides which process is given the processor next.
What is a time slice?
The fixed amount of processor time a process gets before the processor is given to another process.
Where do ready processes wait for the processor?
In a queue, held by the operating system until they are given processor time.
Round robin: what happens when a time slice ends and the process isn't finished?
It goes to the back of the queue, and the next process gets a time slice.
Which scheduling method gives out the processor in order of arrival?
First come, first served.
What does a higher priority give a process?
The processor before, or more often than, a lower-priority process.
A running process has to wait for a slow device. What can the operating system do?
Give the processor to another ready process, so processor time is not wasted.
What are the two aims of CPU management?
Use the processor efficiently (keep it busy) and share processor time fairly between processes.
Why can a one-core computer seem to run everything at once?
The operating system gives each process a turn, so every task makes progress.

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 Eduqas GCSE Computer Science topics

See the full Eduqas Computer Science curriculum →

How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)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 16 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.