An operating system (OS) is system software that manages hardware resources and provides services for application software. It acts as an intermediary between the user/applications and the computer hardware. Examples include Windows, macOS, Linux, Android, and iOS.
The OS provides a way for users to interact with the computer:
The OS controls how RAM is allocated to programs. It ensures programs do not access each other's memory space, and manages virtual memory when RAM is full (swapping data to secondary storage).
The OS uses scheduling to share CPU time between multiple processes. It decides which process runs next and for how long, giving the impression that multiple programs run simultaneously. Common scheduling algorithms include round-robin and priority scheduling.
The OS organises files in a hierarchical directory (folder) structure. It controls:
The OS uses device drivers — small programs that allow the OS to communicate with hardware peripherals (printers, keyboards, graphics cards, etc.). Without a driver, the OS cannot use the device.
The OS enforces access control — requiring user authentication (login), managing user accounts and permissions, and providing firewall and encryption features.
| Function | What it manages |
|---|---|
| User interface | How users interact (GUI or CLI) |
| Memory management | Allocation of RAM; virtual memory |
| Processor management | CPU scheduling; multitasking |
| File management | Files, folders, permissions |
| Device management | Hardware drivers; peripherals |
| Security | Authentication, access control |