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.
| Slice | Running | Time left | Queue after |
|---|---|---|---|
| 1 | A | 4 | B, 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.
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.
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?
First link · your turn
A running process asks for data from a slow device. What happens to that process?
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
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?
How many processes can one processor core execute at any one instant?
What is the scheduler?
What is a time slice?
Where do ready processes wait for the processor?
Round robin: what happens when a time slice ends and the process isn't finished?
Which scheduling method gives out the processor in order of arrival?
What does a higher priority give a process?
A running process has to wait for a slow device. What can the operating system do?
What are the two aims of CPU management?
Why can a one-core computer seem to run everything at once?
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 Eduqas GCSE Computer Science topics
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.