OCR H446, section 1.2.1 (e)
Not every computer needs the same kind of operating system. The OS is designed for what the computer is for. You need to know five types.
Multi-tasking operating systems
A multi-tasking OS lets one user run several programs at the same time: for example listening to music, browsing the web and editing a document.
- There is only one processor core running one thing at a time, so the OS rapidly switches between the programs, giving each a short turn (using a scheduling algorithm), so that it looks as though they run together.
- It manages memory so that each program has its own space.
- Examples: Windows, macOS, Linux, Android and iOS on personal computers and phones.
Multi-user operating systems
A multi-user OS lets several users use the same computer at the same time, usually from separate terminals or over a network, each with their own account, files and settings.
- It keeps each user's data and processes separate and secure, using permissions.
- It shares the processor and other resources fairly among the users.
- Examples: a mainframe or a server used by many people; Unix and Linux servers; a university computer system.
- Note that many ordinary computers are multi-user in the sense that several people each have an account, but only one is usually logged in at a time.
Distributed operating systems
A distributed OS makes a group of separate computers, connected by a network, work together as if they were a single system.
- A task is split into parts, and the parts are run on different computers. The user doesn't need to know which one is doing the work.
- Resources such as processing power and storage are shared across the whole network.
- Advantages: much more processing power, scalable (add more computers), and resilient (if one computer fails, the others carry on).
- Disadvantages: complex to design and manage, needs a fast reliable network, and security is harder.
- Examples: a cluster used for scientific computing, large internet services and cloud data centres.
Embedded operating systems
An embedded OS is built into a device with a specific, dedicated job, such as a washing machine, a car's engine control unit, a router, a smart TV, a digital camera or a microwave.
- It is small and efficient, with limited memory, storage and processing power, and low power use.
- It does one fixed set of tasks, and the user can't normally install other programs.
- It is stored in ROM or flash memory, and starts immediately.
- It often has a simple or no user interface.
- It must be reliable, as the user can't easily fix it.
- Many embedded systems also need real-time behaviour.
Real-time operating systems (RTOS)
A real-time OS must respond to inputs and complete its tasks within a strict time limit (a deadline). The correctness depends on the time as well as the result: a correct answer that arrives too late is a failure.
| Kind | Meaning | Example |
|---|---|---|
| Hard real-time | Missing a deadline is a failure that may cause serious harm | Aircraft flight control, car airbags and anti-lock brakes, pacemakers, industrial robots |
| Soft real-time | Missing a deadline reduces quality but isn't a disaster | Video and audio streaming, online games |
- It uses priority-based pre-emptive scheduling, so the most urgent tasks always run first, and its response times are predictable.
- It is kept small and simple, so its timing can be guaranteed.
Comparison
| Type | Key idea | Typical example |
|---|---|---|
| Multi-tasking | One user, many programs at once | A laptop or phone |
| Multi-user | Many users at once, kept separate | A mainframe or server |
| Distributed | Many computers acting as one system | A cluster or data centre |
| Embedded | Fixed-purpose, small, built into a device | A washing machine controller |
| Real-time | Guaranteed response within a deadline | Aircraft control, pacemaker |
The types overlap: a washing machine uses an embedded OS that may also be real-time.
Worked example
Task: state the best type of OS for (a) a car's anti-lock braking system, (b) a university's computer system that 500 students use, (c) a smartphone.
- (a) Real-time (and embedded): the brakes must react within milliseconds, every time, or the car could crash.
- (b) Multi-user: many students use it at once, each needing their own account and protected files.
- (c) Multi-tasking (with an embedded-style mobile OS): one user runs several apps at once, such as music, messages and maps.
Exam tip: give a definition and a suitable example for each type, and always link your choice to the scenario. For real-time, stress the guaranteed deadline. For distributed, stress that several computers act as one.
Check yourself
What is a real-time operating system?
One that must respond to inputs and complete tasks within a strict time limit, so that the result is correct and on time.
What is the difference between a multi-tasking and a multi-user OS?
A multi-tasking OS lets one user run several programs at once. A multi-user OS lets several users use the system at the same time, keeping each user's data and processes separate.
Give two characteristics of an embedded operating system
Any two of: small and efficient; built into a device with a fixed purpose; limited memory and processing power; stored in ROM or flash; simple or no user interface; the user can't install other programs.
Give one advantage of a distributed operating system
More processing power by sharing the work across computers, it can be scaled up easily, or it is resilient if one computer fails.