AQA 7517, section 4.6.1.3
System software manages the computer and provides the services that other software needs. There are four kinds you need to know about.
Operating systems
An operating system (OS) is the main system software. It manages the hardware and runs the other programs, and gives the user a way to use the computer. Windows, macOS, Linux, Android and iOS are operating systems.
Its main functions include:
- managing the processor, memory and input/output devices (4.6.1.4);
- providing a user interface;
- managing files and storage;
- running and multitasking programs;
- providing security, such as user accounts and permissions;
- managing device drivers that let the hardware work.
It needs to exist because every program would otherwise have to control the hardware itself, which is complicated and would cause conflicts.
Utility programs
Utility programs are small programs that maintain, protect or improve the computer system. They aren't needed to make the computer run, but they help keep it working well.
| Utility | What it does |
|---|---|
| Antivirus / anti-malware | Scans for and removes malicious software |
| Firewall | Controls what network traffic is allowed in and out |
| Disk defragmenter | Rearranges the pieces of files on a hard disk so that they are stored together, which speeds up access (not needed on SSDs) |
| Backup software | Makes copies of files so they can be restored after loss |
| Compression software | Reduces the size of files (such as ZIP) |
| File manager | Lets the user browse, copy, move and delete files |
| Disk formatter | Prepares a storage device to hold files |
| Disk cleanup | Removes temporary and unused files to free up space |
| Encryption software | Scrambles data to protect it |
Utilities are needed because the OS alone doesn't provide everything. They handle the security, upkeep and convenience of the system.
Libraries
A library is a collection of ready-made, pre-written and pre-tested routines (subroutines) that programmers can use in their own programs, instead of writing the code again.
Examples: a maths library (sine, square root), a graphics library for drawing on screen, and a networking library for sending data.
import math # a library of maths routines
print(math.sqrt(49)) # 7.0: a ready-made routine
print(math.factorial(5)) # 120
Why they are needed:
- Saves time: no need to write standard code again.
- Reliable: the routines are already written and thoroughly tested.
- Smaller programs and consistent code.
- Expertise: experts can write the difficult routines (such as encryption) once for everyone to use.
A library can be linked to a program when it is built, or loaded when the program runs. Windows calls these DLLs (dynamic link libraries). Dynamic libraries mean that many programs can share one copy and that a bug fix in the library helps them all.
Translators
A computer's processor only understands machine code. Translators convert programs written in other languages into machine code. There are three types.
| Translator | Translates |
|---|---|
| Assembler | Assembly language into machine code |
| Compiler | A high-level language into machine code (or bytecode), all at once |
| Interpreter | A high-level language, one statement at a time as the program runs |
They are needed so that people can write programs in readable languages instead of binary. They are explained in more detail in 4.6.3.1.
Worked example
Task: a user's computer has become slow. It has lots of unused temporary files, and it isn't protected against viruses. Which system software would help?
- A disk cleanup utility removes the temporary files and frees up space.
- Antivirus software scans for and removes malware.
- The operating system is what ties them together and runs these utilities.
Exam tip: name the type of system software and give its function, not just an example. For utilities, give the specific job, such as "a backup utility makes copies of files so that they can be restored after loss".
Check yourself
What is a software library, and why is it useful?
A collection of pre-written, pre-tested routines that can be used in other programs. It saves time and reduces errors, since the code doesn't have to be written and tested again.
Give two examples of utility programs, and say what each does
Any two, such as antivirus (finds and removes malware), backup (copies files for recovery), compression (reduces file sizes) or a defragmenter (organises file storage on a disk).
Name the three types of translator
Compiler, assembler and interpreter.