What an Operating System Does
Quick answer An operating system is the system software that manages a computer's hardware and software and gives the user a way to work with the machine. Learn its five standard functions by name.
A computer system is made of hardware (the physical parts) and software (the programs). Software is divided into system software, which runs and manages the machine itself, and application software, which does a job for the user — a word processor, a browser, a payment app. The most important piece of system software is the operating system (OS).
An operating system is the system software that manages all the hardware and software resources of a computer and provides an interface between the user and the machine. Nothing else can run until it is loaded. Booting is the process of starting the computer and loading the operating system from secondary storage (the hard disk or SSD) into RAM (Random Access Memory), the fast temporary memory that the CPU (Central Processing Unit) works from. Starting a computer that was switched off is a cold boot; restarting one that is already on is a warm boot.
Examiners normally ask you to name the functions of an operating system and write one line on each. Learn these five in order.
- Process management. A process is a program that is currently in execution. A computer runs many processes at once, but a CPU core can attend to only one instruction stream at a time. The OS therefore schedules processes — it decides which process gets the CPU, for how long and in what order, and switches between them so quickly that they appear to run together. This is called multitasking. It also starts and ends processes and settles conflicts over shared resources.
- Memory management. The OS keeps track of every part of RAM: which part is free and which part is allotted to which program. It loads a program into memory when you open it, frees that memory when you close it, and stops one program writing into another's memory area. When RAM runs short, most operating systems use virtual memory — a reserved area of disk used as though it were extra RAM.
- File management. The OS organises data into files and folders, records where each file is physically stored, and carries out creating, opening, saving, copying and deleting. It also controls access permissions, so that one user of a shared computer cannot read another user's private files.
- Device management. Keyboard, mouse, printer, pen drive, webcam — each must be controlled. The OS does this through device drivers: small programs that translate its general instructions into the exact signals one particular device understands. It also handles spooling, for example queueing several print jobs so that users need not wait at the printer.
- Providing a user interface. The OS gives the user a way to issue commands — by typing them or by clicking on pictures. That is the subject of the next section.
Two further duties are worth a line in a long answer: security (user accounts, passwords and permissions) and error handling (noticing a failed disk read or a crashed program and reporting it instead of freezing the machine).
To remember where the OS sits: the user talks to the application, the application talks to the OS, and the OS talks to the hardware. Because it stands in the middle, it is described both as a resource manager and as an interface.
- An operating system is system software that manages hardware and software resources and provides an interface between user and machine.
- Booting is loading the OS from secondary storage into RAM at start-up; no other program can run before it.
- Name five functions: process management, memory management, file management, device management and the user interface.
- A process is a program in execution; rapid switching between processes gives the effect of multitasking.
- Device drivers let the OS control particular hardware; virtual memory uses disk space when RAM falls short.
- System software runs the machine (OS, drivers, utilities); application software does a job for the user.
