What is an Operating System: The Software That Runs Your Software

The invisible boss that lets every app share one computer

1

The Layer Cake: Hardware, Kernel, OS, Apps

Click any app at the top to watch it talk to the operating system. Apps never touch hardware directly. Instead, they ask the kernel (the heart of the OS) to read a file, draw a pixel, or send data over the network. The kernel handles the messy details with the hardware so the apps don't have to.

Click an app to see what hardware it touches through the OS.

app → system call → kernel → driver → hardware
A "system call" is how an app asks the kernel for something. Common ones: open(), read(), write(), fork(). When you save a file, your app makes a write() call and the kernel takes it from there.
2

Multitasking: One CPU, Many Programs

Your computer might have only 4 or 8 CPU cores, but it runs hundreds of programs at once. How? The OS scheduler switches between them so quickly that they all seem to run at the same time. Each program gets a tiny slice of CPU time. Move the slider to change how many processes are competing.

Processes: 4

More processes mean more switching. Watch the timeline at the bottom.

switch_count = (cpu_cores × switches_per_second) × runtime
A typical Linux machine performs thousands of context switches per second. Each switch saves the running program's CPU state, picks the next process, and restores its state. It costs a little time, but makes everything feel responsive.
3

Memory and Files: The OS Gives You Lies (Useful Ones)

Each program thinks it has the whole computer to itself. The OS makes that possible with two big lies. Virtual memory: each process sees its own private addresses, even though they all share the same physical RAM. The file system: the OS wraps disk sectors in named files and folders. Apps say "open my_song.mp3", not "go to sector 28371".

Click apps to see their virtual memory or files. The OS keeps everything separate.

4

The Family of Operating Systems

Every OS does the same job: schedule processes, manage memory, organize files, talk to hardware. They differ in how. Here's the cast.

Linux
The OS that runs the world (quietly).

Free and open source. Started in 1991 by Linus Torvalds as a college project. Today it powers most servers, all supercomputers, and the Android phones in 3 billion pockets.

Where: servers, cloud, Android, smart devices, your fridge, probably.
macOS & iOS
A pretty face on a Unix core.

Apple builds both for its hardware. Underneath the shiny UI is a Unix-based system descended from BSD, with custom kernels (XNU) for fast graphics, security, and battery life.

Where: Macs, iPhones, iPads, Apple Watch, Apple TV.
Windows
The OS most people learn first.

Microsoft\'s Windows runs about 75% of desktop computers. Modern Windows is built on the NT kernel (1993), totally separate from the old MS-DOS that ran Windows 95/98.

Where: most desktop PCs, Xbox, gaming, business apps.
Android
Linux in your pocket.

Google\'s Android is a Linux kernel with a custom Java-based app layer on top. Open source, runs on phones from dozens of makers, plus tablets, TVs, watches, and cars.

Where: most phones in the world (about 70% market share).
Real-Time OS
When milliseconds matter.

RTOSes like FreeRTOS or VxWorks guarantee a response within a strict time limit. Used where lateness is not an option: car airbags, pacemakers, factory robots, satellites.

Where: medical devices, planes, rockets (NASA Mars rovers run VxWorks).
Browser as an OS
The web is the platform.

Modern browsers are basically little operating systems. They schedule tabs (processes), sandbox memory, manage storage, and let web apps look and feel like native ones. ChromeOS takes this idea all the way.

Where: every Chromebook, every web app you use.
Fun Fact

Almost every OS in this list traces back to Unix, written in 1969 at Bell Labs by Ken Thompson and Dennis Ritchie. It was so simple and elegant that 50 years later, Linux, macOS, iOS, Android, and most of the internet still follow its design ideas. Windows is the main exception, with a separate lineage going back to OS/2 and DEC VMS.

OS Architect!

You've met the most important program on any computer: the operating system. The OS is the layer between your apps and the hardware. It schedules every process, hands out memory, manages files, and talks to your screen, keyboard, network, and disk. Linux, macOS, Windows, iOS, and Android all do these same jobs, just in different ways.

0
Context Switches
0
Apps Explored
0
Time Exploring

The OS Sits Between Apps and Hardware

Apps don't talk to your screen, disk, or network directly. They ask the OS to do it. This means apps don't have to know what kind of hardware you have, and the OS can stop one app from interfering with another.

Processes and Multitasking

Every running program is a "process". The OS rapidly switches between processes (thousands of times per second) so it looks like they're running at the same time. This is called preemptive multitasking.

Memory and Files Are Abstractions

The OS gives each process its own private "virtual" memory (so they can't step on each other). It also wraps disk storage in files and folders, so apps don't have to know about sectors or tracks.

One Family, Many Faces

Linux runs servers, supercomputers, and Android phones. macOS and iOS share a Unix-based core. Windows runs most desktops. They all do the same job, just differently. Most of them descend from Unix (1969) one way or another.

Ready to Create?

Put your new knowledge into practice!

Suggest a Correction