MyLeoNes™

How an operating system shares a computer — Technology, 14–17 years

Understand the layer that lets many programs use the same hardware without fighting over it.

A manager between programs and hardware

An operating system is the main software that coordinates the computer’s processor, memory, storage and devices. Apps do not usually control these parts directly; they ask the operating system for services. This lets a browser, music player and document editor run together while the system shares resources and keeps their work separate.

Why operating systems appeared

Without an operating system, every program would need its own instructions for every keyboard, screen, disk and processor model. That made software hard to build and easy to break. Operating systems grew to provide common services and manage competing requests, so one program could work on many machines and several programs could share one machine.

Sharing limited memory

Imagine a phone with 4 GB of RAM. The system gives 2 GB to a game, 1 GB to a browser and 0.5 GB to music, leaving 0.5 GB free. If a new app needs 1 GB, the operating system may close or pause another app, because it cannot safely promise more memory than the phone has.

The trap: closing a window is not always closing a program

People often assume that an app stops completely when its window disappears. That seems reasonable because the visible part is gone, but a program may still be downloading, playing sound or waiting in the background. The operating system decides which tasks continue, pause or end, according to their permissions and resource needs.

The system under every app

Your phone, laptop, games console and smart television all use an operating system. It handles actions such as opening a file, connecting headphones, showing a notification and applying permissions to the camera. When an update improves battery use or fixes a device problem, it is often changing this coordinating layer.

Keep exploring

Other languages

Loading MyLeoNes™…