CIE AS & A Level Computer Science, section 5.1 (Operating systems)
Why an operating system is needed
An operating system (OS) is the software that manages the computer's hardware and resources and provides a platform for other programs to run on. Without it, each program would have to control the hardware itself, and the user would have no easy interface.
The OS:
- provides a user interface so people can use the computer,
- hides the complexity of the hardware from users and programmers,
- manages the resources so that several programs can share them safely.
Key management tasks
| Task | What the OS does |
|---|---|
| Memory management | allocates memory to programs, keeps programs from using each other's memory, and frees memory when programs finish |
| File management | organises files in folders, controls naming and access, and keeps track of where files are stored on the disk |
| Security management | controls user accounts, passwords and access rights, and protects data from unauthorised use |
| Hardware management (input, output, peripherals) | communicates with devices through device drivers, handles interrupts, and manages buffers and queues for devices such as printers |
| Process management | decides which process uses the CPU and when (scheduling), and allows multitasking |
Worked example
When you save a document, the OS:
- checks you have permission to save in that folder (security),
- finds free space on the disk and records the location (file management),
- sends the data to the disk through the device driver (hardware management),
- uses memory and CPU time fairly while it does so (memory and process management).
Examples
Windows, macOS, Linux, Android and iOS.
Common mistake: describing an OS as only "the screen you see". The user interface is one part. The OS also manages memory, files, security, hardware and processes. Also, do not confuse the OS with application software such as a word processor.
Exam tip: for "explain the management tasks", pick the named tasks and give a specific action for each (not just the name). Use terms like device driver, access rights and scheduling.
Check yourself
Give two tasks carried out by an operating system.
Any two: memory management, file management, security management, hardware management, process management.
What is a device driver used for?
It lets the operating system communicate with and control a hardware device.
Why does a computer need an operating system?
It manages the hardware and resources, provides a user interface, and provides a platform on which application programs run.