CIE AS & A Level Computer Science, section 16.1 (Purposes of an Operating System (OS))
What an operating system does
An operating system (OS) is the software that manages the computer and acts as a layer between the user and applications and the hardware.
Managing resources
The OS shares the computer's resources between programs, and makes sure they are used efficiently and fairly.
- Processor: decides which process runs and for how long.
- Memory: allocates and protects the memory each program uses.
- Input/output devices: controls the keyboard, display, printers and storage, using device drivers.
- Files: organises storage, and controls access to files.
- Security: manages users, passwords and permissions.
- Errors and interrupts: handles errors, and interrupts from devices.
Hiding the hardware
The OS hides the complexity of the hardware. A programmer saves a file without needing to know how the disk is organised. Device drivers let programs use different hardware in the same way.
User interface
| Interface | Description | Suited to |
|---|---|---|
| GUI | windows, icons, menus and a pointer | most users |
| Command-line (CLI) | the user types commands | experts, quick, uses little memory |
The OS can also provide utility programs (such as a disk defragmenter), and a system library.
Common mistake: thinking the OS is only the interface. The OS also manages memory, processes, files and devices. Also, utility programs (such as a virus scanner) are separate from the core of the OS.
Exam tip: when asked what an OS does, name the resource and say how it manages it. Example: "memory management, allocating memory to each program and stopping one program overwriting another".
Check yourself
Identify three resources managed by an operating system.
The processor, memory and input/output devices (also files and security).
What is the purpose of a device driver?
It lets the operating system and programs communicate with a hardware device in a standard way.
Give one advantage of a command-line interface.
It is fast for experienced users and uses little memory.