The software that runs the machine
An operating system, often shortened to OS, is the main piece of software that manages a computer. Windows, macOS, Linux, Android and iOS are well-known examples. It starts when the machine is switched on and stays active until it is shut down. Every other program runs on top of it.
Without an operating system, every program would need its own instructions for talking to the screen, keyboard, drive and network of every possible machine. The operating system takes on that shared work once, so programs can simply ask for what they need.
Managing the processor
A modern computer appears to do many things at once, but a processor core can only follow one stream of instructions at a time. The operating system creates the illusion of simultaneity by switching between running programs very quickly, giving each a short slice of time. This job is called scheduling.
The scheduler decides who goes next. Things that need to respond to you, like the cursor and open window, are generally given priority over background work such as indexing files. On a chip with several cores, it also spreads work across them.
Managing memory
Each running program needs space in RAM. The operating system hands out memory, tracks what is in use, and takes it back when a program closes. It also keeps programs apart, so that one cannot read or overwrite another’s data by accident. This isolation is a large part of why a crash in one app does not usually bring down the whole machine.
When memory runs short, the operating system can move less-used data out to the storage drive and bring it back when needed. This keeps things running but can feel slow, a trade-off discussed in more detail in the explanation of what happens when RAM fills.
Talking to hardware: drivers
Hardware comes from many makers, and each device has its own way of being controlled. The operating system uses small programs called drivers that translate between its general requests, such as “print this page” or “play this sound”, and the specific commands a particular printer or sound chip understands.
This is why plugging in a new device sometimes causes the system to install something automatically, and why an old device may stop working after a system change if no suitable driver exists. Drivers are updated alongside the system, which is one reason keeping up with software updates is useful for both stability and compatibility.
At the centre of the operating system is the kernel, the core part that handles these low-level tasks: processor time, memory and device access. Other parts, such as the desktop, settings and built-in tools, sit around it.
Managing files
Storage drives hold data as an enormous number of blocks, with no built-in idea of a document or a folder. The operating system adds that structure through a file system. It records where each file’s data lives, along with the name, size, dates and who may open it, and presents it to you as a tidy hierarchy of folders.
When a program asks to open or save a file, the operating system finds or allocates the space and does the transfer. It also decides how names and file extensions are handled, and can keep recently used data in memory to speed up repeat access. Different systems use different file systems, which is why a drive prepared for one system sometimes cannot be written to by another without reformatting.
Running and managing programs
The operating system starts programs, gives them resources and ends them. It also provides ready-made services that programs use, such as drawing windows, playing audio, connecting to the network and reading input. A shared set of such services is why apps on the same system tend to look and behave similarly, with the same window controls and menus.
Because programs call on these services in an agreed way, a program written for one system generally cannot run on another without changes. The services and file layouts differ, and the instruction patterns might too. This is why software often has separate versions for Windows, macOS and phones, and why mobile operating systems and desktop ones differ in what apps are allowed to do.
Security and permissions
The operating system is also the gatekeeper. It decides who may do what:
- User accounts separate one person’s files and settings from another’s.
- Permissions control which files and devices a program may access.
- Administrator rights are required for changes that affect the whole system, such as installing certain software.
- Many systems ask before an app uses the camera, microphone or location.
This layer matters because programs run with the permissions of whoever started them. If a harmful program runs with limited rights, it can do less damage. Updates frequently fix weaknesses in this layer, and general online safety advice leans heavily on installing them promptly.
The user interface
What you see and touch is also part of the operating system, or built on top of it. A graphical interface with windows, icons and menus is the usual form on desktops. Phones use touch-based interfaces. Some systems also offer a command line, where you type instructions as text. Both are ways of asking the same underlying system to do things.
Starting up
When you press the power button, a small program stored on the machine’s board wakes up first. It checks that basic hardware is present and then finds the operating system on the drive and loads its core into memory. The kernel takes over, loads drivers, starts background services and finally shows the login screen. This is the boot process, and it is why a computer takes longer to start than to wake from sleep, where memory is kept intact and powered.
Why updates matter
Operating systems are large and complex, and they must keep up with new hardware, new security threats and changing standards. Updates fix bugs, close security holes and add support for new devices and features. Occasionally an update brings problems of its own, but running a system that is no longer supported is generally riskier over time.
Understanding the operating system’s role makes many everyday experiences clearer: why apps ask permission, why a driver matters, why a frozen program can be closed without restarting everything, and why switching platforms means finding versions of your software that suit the new one.