- Why a computer needs an operating system
The OS sits between the hardware and the user/applications, managing resources and hiding complexity.
Modern computer hardware is complicated: a processor, banks of memory, storage devices and dozens of peripherals all have to work together. Writing every application to control that hardware directly would be impossible. The operating system (OS) solves this by acting as a layer between the hardware and everything above it.
A useful way to picture it is as layers:
The OS does two big jobs:
- It manages the computer's resources — the CPU, the memory, the storage and the peripherals — sharing them between programs and the user.
- It provides an interface (a platform) so the user can interact with the machine and applications can run, without having to deal with the hardware directly. This hiding of detail is sometimes called abstraction.
Without an OS, an ordinary computer could not load programs, manage files, share the processor between tasks, or let you use a keyboard and screen in the way you expect.
- The OS is system software that sits between hardware and the user/applications.
- Job 1: manage resources (CPU, memory, storage, peripherals).
- Job 2: provide an interface/platform and hide hardware complexity.
- Without an OS, programs could not run and devices could not be used easily.