Phase 1: Prepare
Step 1 Warm-up recall
From M7.L3: what does LOAD 8 then SUB 3 leave in the accumulator?
Private: nothing you type here is sent or stored.
Step 2 Learning goal
By the end of this lesson you can:
- list the jobs of an operating system (Foundation);
- explain time sharing with an example (Core);
- explain why updates and permissions matter (Core).
Phase 2: Teach
Step 3 A familiar example
A building manager does not cook or teach, but makes sure the rooms, power and doors work for everyone who uses the building. An operating system does this for programs.
Step 4 Clear explanation
An operating system (OS) is the program that manages a computer’s resources and runs other programs. Its main jobs are in the table.
| Operating system job | Example |
|---|---|
| Share the processor | Run several programs in turn |
| Manage memory | Keep programs from overwriting each other |
| Manage files | Names, folders and permissions |
| Manage devices | Screen, keyboard, printer and network |
A running program is a process. With one processor, the OS creates the feel of many programs running at once by giving each a short turn in rotation, called time sharing.
In the invented example, three programs take 10 ms turns, so each gets a turn every 30 ms; each seems continuous because the turns are so short. The OS also keeps each program inside its own part of memory, so one faulty program cannot easily overwrite another, and it uses permissions to decide who can read or change a file. Software updates to the OS matter because it sits beneath everything else: a flaw in it can affect every program. For the wider picture of how programs are written to run on an OS, see the entry on the programming language.
Step 5 Worked example (4 marks)
Four programs share one processor with 5 ms turns (invented). How often does each get a turn?
- One full rotation takes 4 × 5 = 20 ms. (1 mark)
- Each program runs once per rotation. (1 mark)
- So each gets a turn every 20 ms. (1 mark)
- Answer: every 20 ms. (1 mark)
Phase 3: Practise
Step 6 Learner practice (instant-marked)
1. An operating system:
It is the base layer for other programs.
2. Time sharing means:
Short turns in rotation.
3. Three programs with 10 ms turns each get a turn every:
3 × 10 = 30.
4. Why do operating system updates matter?
The OS sits beneath all programs.
Phase 4: Close
Step 7 Recap
- The OS manages the processor, memory, files and devices.
- Time sharing gives each process short turns.
- Permissions and updates protect the system.
Step 8 Exit ticket (ungraded)
Five programs with 4 ms turns: how often does each run?
Private: nothing you type here is sent or stored.
Step 9 Go further (Extension)
Look at the list of running programs on a device you use and count the processes.
Common mistakes
| Mistake | Why it fails |
|---|---|
| Thinking many programs run at exactly the same instant on one processor | They take turns very quickly. |
| Confusing a program with a process | A process is a program being run. |
| Ignoring updates | They fix flaws in the base layer. |
Limits. Modern machines have several processors and cores; the time-sharing example is simplified.