What an operating system does
🏠The everyday picture
In a busy restaurant, the manager doesn't cook. They decide which cook uses which stove, keep the store room organised, let staff in and keep strangers out, and make sure two waiters don't grab the same plate. The operating system is that manager for your computer.
📘What it really is
The operating system (OS) is the software that sits between the hardware and every other program. It:
- shares the CPU between all running processes, switching between them thousands of times a second;
- hands out RAM to each process and takes it back when they close;
- organises storage into files and folders;
- talks to devices (keyboard, screen, Wi-Fi, printer) through small programs called drivers;
- controls access: who can log in, and who may read or change which files;
- provides the screen you see: windows, menus, the desktop.
Applications don't touch the hardware directly. They ask the OS, and the OS decides. That's why the same app (like Chrome) can run on very different computers.
🖱️Try it
Restart your computer and watch what happens before you can log in. That's the OS starting: checking the hardware, loading drivers and starting background services. Everything you use later depends on it.
✅Quick check
Why can't you install a Mac app on Windows by just copying the file?
Show the answer
Each app is built to ask a particular OS for what it needs. A Mac app speaks to macOS; Windows doesn't understand its requests.
Two apps both try to save to the same file at the same moment. Who prevents chaos?
Show the answer
The operating system. It controls access to files and can lock a file while one program is writing to it.
