An operating system is the layer that lets many programs share one machine without colliding. It decides which program runs next, which memory it may touch, how files are stored, and how a printer gets a document. Without it, every application would need its own drivers and its own idea of where data lives. For the layer above, see what an algorithm is.
Scheduling: sharing one processor
A modern machine runs hundreds of processes but may have eight cores. The scheduler switches between them thousands of times per second, giving each a slice of time. This is why a video call continues while you type.
Why it feels simultaneous: the slices are shorter than human perception. The cost is context switching — saving and restoring state, which is pure overhead.
Memory: giving each program its own illusion
Each process sees a private address space, and the memory management unit translates those addresses to physical memory. A program cannot read another program’s data without permission, which is both a stability and a security boundary.
Virtual memory: when physical memory runs out, the system moves pages to disk. This works until it does not — heavy swapping is the reason a machine with too little RAM becomes unusable rather than merely slow.
Files and drivers
A file system maps names to blocks on storage and tracks metadata such as size and permissions. Drivers translate generic requests — “write these bytes to the network” — into commands a specific chip understands.
Why drivers crash systems: they run with high privilege inside the kernel. A bug there can take down everything, unlike a bug in an application.
Users, permissions, and sandboxing
Programs run under an account with defined rights. On phones, each app is additionally sandboxed with its own storage and limited access. That is why a malicious app on a phone struggles to read another app’s files, while on a desktop a careless install can reach far more.
The trade-off: stronger sandboxing means more friction for legitimate software. Desktop systems historically favoured flexibility; mobile systems favoured safety.
Why phones and laptops run different systems
Desktops need multi-window productivity, arbitrary drivers, and backward compatibility. Phones need battery efficiency, touch-first interfaces, and tight control of the hardware stack. Android and iOS are built around those constraints.
What is shared: both are kernels plus services plus a UI. The differences are in policy, not in the fundamental idea.
What to ask afterwards
- Why can one app crash without taking the whole computer down? (Separate address spaces.)
- What does “administrator” actually grant? (Permission to change system-wide settings and install drivers.)
- Why does an old laptop run better with a lightweight Linux? (Less background work, fewer services.)
- What is a “live” USB? (An operating system running from removable storage without touching the internal disk.)
Related: how computers store data, cloud computing, and Tech & AI.


