A-Level Computer Science — Operating Systems and System Software: five management tasks, six utilities and program libraries (lesson-prep guide for tutors)
- 2026-11-27
Students can say the operating system manages hardware, then go blank when asked how memory management works. This chapter ties each of the five management tasks to one figure or one list: frames for memory, cluster slack for files, password space for security, the print spooler for hardware, round robin for processes. It closes with 20 programs sharing a 2 MB library, turning DLL from a slogan into a 38 MB difference.
01 Prerequisites (3-minute check)
If any of these fails, fix it before the lesson starts.
| Skill | Quick check | Pass mark |
|---|---|---|
| Units of memory | How many times bigger is a GiB than an MiB | 1024, and pages and frames both use binary units |
| A byte | How many bytes is one ASCII character | One |
| Disk against memory | Where does data live after the power goes off | On disk, since memory is cleared when power is lost |
| Multitasking | Three programs run at once, so who divides the time | The OS hands each process a slice of CPU time |
| Files and folders | Can one folder hold two files with the same name | No, file management keeps names unique |
02 Lesson flow (60 minutes)
| Time | Stage | Tutor does | Student does |
|---|---|---|---|
| 0-8 min | Opening: why an OS at all | Ask what runs a machine with no software, then list four reasons | Give at least three reasons |
| 8-20 min | The five management tasks | One task at a time, each with an action and a number | Sort a job into the right task |
| 20-32 min | Memory: paging and virtual memory | Frame count, internal fragmentation, page faults and access time | Compute pages and wasted bytes |
| 32-42 min | File and security management | Cluster slack, access rights, password space | Compute slack and explain long passwords |
| 42-52 min | The six utilities | Formatter, scanner, defragmenter, repair, compression, backup, each with a figure | Choose one and justify it |
| 52-60 min | Libraries, DLL and the exit check | 20 programs at 40 MB against 2 MB | Name one benefit and one cost of DLL |
03 Teaching script (read it out)
Scene 1: One machine, five workbenches
Then put the five management tasks on the board as five workbenches, each with one concrete action, otherwise students only memorise nouns. Memory management decides which process gets which memory, reclaims what is freed and stops one process reading another, using paging and virtual memory. File management builds the directory tree, keeps names unique, records which clusters each file occupies and checks permissions. Security management runs accounts and passwords, sets access rights for who may read or change what, and logs who did what. Hardware management uses drivers to translate print this page into commands the printer understands, and uses buffers and print spooling to bridge speed differences. Process management slices CPU time, deciding who runs and who waits for input.
Run the sorting drill in this scene, because the exam asks which task a job belongs to. The rule: an address means memory management, a file or folder means file management, an account or permission means security management, a device or driver means hardware management, and CPU time or queueing means process management.
Student task: sort four jobs: moving page 3 of a program out to disk, refusing a user permission to delete a file, two programs asking for the printer at once, and switching to another program every 20 ms.
Say this: an OS is five workbenches, each handing out one scarce resource.
Scene 2: Memory: frames, faults and that factor of 51
Internal fragmentation is the cell students miss: a 100,000-byte program needs 25 pages because 100,000 over 4,096 is 24.4 and must round up, occupying 102,400 bytes with a part-used last page wasting 2,400 bytes, 2.4%. Make the point that waste is always less than one page, so smaller pages waste less but need a bigger page table, which is the trade-off.
Virtual memory needs one hard sentence: it does not add memory, it borrows disk. 6 programs of 2 GiB each demand 12 GiB against 8 GiB of physical memory, so the extra 4 GiB lives in a swap file on disk. Programs still run because they do not touch every page at once. The cost is arithmetic: a hit takes 100 ns, a fault takes 5 ms of disk access, which is 5,000,000 ns, so at a miss rate of 1e-5 the effective access time is 150 ns, only 1.5 times slower and acceptable; at 1e-3 it becomes 5,100 ns, 51 times slower, and that is thrashing, where the disk light stays on and nothing finishes.
Student task: compute the pages and wasted bytes for a 250,000-byte program with 4 KiB pages, then explain why the waste must be under 4,096 bytes.
Say this: pages are fixed boxes, the last box is partly empty, and virtual memory borrows the disk.
Scene 3: Six utilities, six numbers
Disk formatter: it creates the file system and root directory, and a full format also writes zeros everywhere to find bad sectors, so 2 TB at 150 MB a second takes 13,333 seconds, 3.70 hours, while a quick format only rebuilds the index in seconds. Virus checker: a full scan of 2 TB at 200 MB a second takes 10,000 seconds, 2.78 hours, so it is scheduled overnight, while a boot scan of key files takes seconds. Defragmentation: it regroups the scattered clusters of one file into a contiguous run, and it is not the same as clearing temporary files. A file split into 240 fragments needs 9 ms of seek each time, 2,160 ms or 2.16 seconds to read once; after defragmenting it needs 9 ms, 240 times faster. Solid state drives need no defragmentation because nothing moves mechanically. Disk contents analysis and repair: it lists large and duplicate files, marks bad sectors and repairs the file system tables. File compression: 250 MB of logs compressed to 75 MB is a ratio of 3.33 to 1, saving 70 percent, and over 30 days 7,500 MB becomes 2,250 MB, saving 5,250 MB. Back-up: 500 GB of data changing 5 percent a day is 25 GB a day, so one full plus six incremental backups is 650 GB against 3,500 GB for seven fulls, 5.38 times less; the catch is that a restore stacks the full plus every increment, while restoring the 500 GB full alone at 100 MB a second already takes 5,000 seconds, 1.39 hours.
Student task: match three situations to one utility each and justify it: a machine that slows down with the disk light flickering, 20 GB left but a year of logs to keep, and a settings file broken last week that must be brought back.
Say this: every utility answers a symptom, so an answer that does not name the symptom scores nothing.
04 Question types and worked steps
| Type | Example | Steps | Answer |
|---|---|---|---|
| Pages and fragmentation from page size | 100,000-byte program, 4 KiB pages | Divide by page size and round up, multiply back and subtract the original | 25 pages, 102,400 bytes, 2,400 wasted |
| Effective access time from a miss rate | 100 ns hit, 5 ms fault, miss rate 1e-3 | Hit rate times hit time plus miss rate times fault time | 5,100 ns, 51 times slower |
| Sorting a job into the five tasks | Moving page 3 of a program out to disk | Check whether it touches addresses, files, accounts, devices or CPU time | Memory management, through virtual memory |
| Choosing a utility with a reason | Too many logs, disk nearly full | Name the symptom, the action and the effect | Compression, 3.33 to 1, 70 percent saved |
| Static linking against a DLL | 20 programs each needing 2 MB | Static means one copy each, a DLL means one shared copy at run time | 40 MB against 2 MB, 38 MB saved |
05 Independent practice (3 questions)
| Question | Answer | What to watch |
|---|---|---|
| A computer has 12 GiB of memory and 4 KiB pages. How many frames are there, and how many pages and wasted bytes does a 250,000-byte program need? | 3,145,728 frames; 62 pages, 253,952 bytes, wasting 3,952 bytes | Divide and round up first, and the waste must stay under 4,096 |
| A disk with 64 KiB clusters holds 300 files of 40 KiB each. How much space is lost to cluster slack, and should clusters be larger or smaller to reduce it? | 24 KiB per file, 7,200 KiB in total, 7.03 MiB; clusters should be smaller, at the cost of more clusters and a larger file table | Each file occupies one whole cluster, so the slack is exact here rather than the half-cluster average |
| 20 programs all need the same 2 MB library. How much disk does static linking use against one shared DLL, and what does the DLL cost? | 40 MB against 2 MB, saving 38 MB (95 percent); the cost is that a missing or wrong version stops the program, and updating the library can affect every program | The same code copied 20 times is 20 times the space, while sharing is one copy |
06 Common mistakes and what to say
| Mistake | Student writes | Say this |
|---|---|---|
| Treating virtual memory as extra RAM | Saying 12 GiB is available and just as fast | Virtual memory borrows the disk, so only the 8 GiB of physical memory is fast; at a miss rate of 1e-3 the access time rises from 100 ns to 5,100 ns, 51 times slower. |
| Confusing defragmentation with cleaning | Saying defragmentation deletes temporary files and frees space | Defragmentation only moves the scattered clusters of a file into one run, deleting nothing, so free space barely changes; clearing temporary files is a different tool. |
| Thinking a DLL is copied into the executable | Saying a DLL is a library packed inside the exe | A DLL is loaded at run time and shared by the whole machine; copying library code into the executable at compile time is static linking, and the disk figures differ hugely. |
| Mixing up process and memory management | Saying round robin hands out memory to each program | Round robin hands out CPU time, switching every 20 ms, while paging in memory management divides memory. |
07 Homework (paper, section and question numbers)
- A-Level Computer Science chapter index — Every chapter in this subject
- All lesson-prep guides — Other subjects in the same series
- Redo this chapter — Practice questions 1 to 3: frames in 12 GiB, cluster slack with 64 KiB clusters, and static linking against a DLL
08 Exit check (last 5 minutes)
| Question | Answer | Decision |
|---|---|---|
| One definition | Virtual memory borrows disk, it does not add memory | Saying it adds memory means scene 2 needs redoing |
| One limit | Internal fragmentation is always under one page | Allowing more means scene 3 needs redoing |
| One difference | 20 programs cost 40 MB statically and 2 MB with a DLL | Saying they are the same means scene 6 needs redoing |
09 Tutor FAQ
Why have virtual memory at all, since buying more RAM is simpler?
More RAM solves capacity; virtual memory solves the everyday case of many programs open while each touches only part of its memory. It also gives every process its own address space, which is protection, and it lets 12 GiB of demand run on 8 GiB of physical memory. The cost is waiting for the disk on a fault, so work that must be fast still needs enough real memory.
Does defragmentation help a solid state drive?
No, and it is best avoided. A hard disk loses time to mechanical seek: a file split into 240 fragments takes 2,160 ms to read once and 9 ms after defragmenting. A solid state drive has no head, so random and sequential reads cost about the same, and rewriting data only shortens its life.
How should a student choose between incremental and full backups?
By how much loss is acceptable and how fast a restore must be. With 500 GB changing 5 percent a day, one full plus six incremental backups is 650 GB against 3,500 GB for seven fulls, 5.38 times less, but a full restores in one step taking 1.39 hours, while an incremental restore stacks the full and every increment. In practice take periodic fulls, keep incrementals between them, and keep both.
Find a tutor — freeTutor Registration →
A TutorZone lesson-prep guide. Written by the TutorZone team; questions and lesson flow are original and are not taken from any school or publisher material.



