AlgoViz
Operating Systems
Operating Systems · EasyLesson 1 of 12

What is an operating system?

You've used Windows, macOS, or Android — but what IS an operating system, really? It's the program that runs all your other programs. It's the manager standing between your apps and the actual machine (the CPU, the memory, the disk), making sure everyone shares nicely and nobody breaks anything. Without it, every app would have to know how to drive the hardware itself — and they'd constantly crash into each other.

The manager in the middle

GameBrowserMusicOperating Systemthe manager🧠CPU🧮Memory💾Disk
Your apps don't touch the hardware directly. They ASK the operating system, and the OS handles the machine.

Picture three apps open at once: a game, a browser, a music player. All three want the CPU to do their math. All three want to store stuff in memory. The music player wants the speakers; the browser wants the network. If they all grabbed the hardware directly, it would be chaos — two apps writing to the same memory, three apps fighting over the CPU. So they don't. They ask the operating system, and the OS is the one grown-up in the room that decides who gets what, when.

What does it actually manage?

Four big jobs, and the rest of this track is really just these four explained in detail: 1. The CPU — only one can run at a time (per core), so the OS decides whose turn it is and switches between them insanely fast (that's scheduling). 2. Memory — it hands out chunks of RAM to programs and makes sure one program can't peek at or stomp on another's (that's memory management & virtual memory). 3. Files — it organizes the disk into files and folders so you don't deal with raw blocks of storage (that's the file system). 4. Devices — keyboard, screen, network, speakers: the OS talks to each one so your apps don't have to.

Why not just let apps talk to the hardware?

Two reasons: safety and sharing. Safety — if any app could touch any memory or any device, one buggy or nasty app could read your passwords or crash the whole machine. The OS stands guard. Sharing — there's only one CPU and one chunk of memory, but many apps. Someone has to referee, fairly, so no single app hogs everything. So the OS is part traffic cop, part bodyguard, part landlord. You never see it doing this — that's the point. A good operating system is invisible.

Questions you might have

Is the operating system the same as the desktop / the icons I see?

Not quite. The desktop, the windows, the icons are the 'shell' — the visible face you click. The real operating system is the engine underneath: the part juggling the CPU, memory, and files. You see the dashboard; the OS is the engine.

Do phones and game consoles have an operating system too?

Yes! Android and iOS are operating systems; so is the software inside your PlayStation, your smart TV, even your car's dashboard. Anywhere many programs share one piece of hardware, there's an OS managing it.

What does 'the hardware' mean here?

The physical parts: the CPU (the brain that does the math), the memory/RAM (fast scratch space the computer uses while running), the disk (where files are saved permanently), and devices like the keyboard and screen. The OS is software that manages all that physical stuff.

If the OS is a program, who runs the OS?

It starts itself when you power on (that's 'booting'). A tiny bit of code on the machine loads the OS first, and from then on the OS is in charge — it's the first program to run and the last to stop. Everything else runs on top of it.

🧠An operating system is the manager between your apps and the hardware. It shares the CPU, memory, files, and devices safely among many programs — invisibly. Everything else in this track is one of those jobs, up close.
✅ Check yourself3 quick questions — prove the idea stuck.Start →