Theory
The eight seconds you never think about
A customer's laptop shows only a black screen with a blinking cursor. "Everything was fine yesterday," she says.
Chirag's diagnosis takes one glance: "The machine is fine. Windows is not loading."
Think about that: perfect hardware, and yet no desktop, no icons, no click, nothing. Whatever fills the gap between the power button and a usable computer, that is the operating system, and today you find out what it actually does in those eight seconds and after.
Theory
The hotel's general manager
Last topic gave you the hotel: hardware is the building, apps are the guests. The OS is the general manager. Guests never wire electricity or assign their own rooms; they ASK, and the manager allocates rooms (memory), schedules the one lift fairly (CPU), keeps registers of everything stored (files), commands the staff (devices via drivers), and stops guests from wandering into each other's rooms (protection).
Theory
What the OS is
The operating system is system software that:
- manages every hardware resource, and
- gives users and applications a simple platform to work on.
It is the first large program loaded at startup (booting: firmware in ROM wakes up, finds the OS on storage, loads it into RAM), and it stays in charge until shutdown. Windows, Linux, macOS on computers; Android and iOS on phones, yes, your phone runs a full OS.
At a glance
The functions exams ask for
| Function | What it means | You see it when |
|---|---|---|
| Process management | Shares CPU time among running programs | 30 apps feel simultaneous on 4 cores |
| Memory management | Allots and protects each program's RAM | One crashing app doesn't kill others |
| File management | Names, folders, permissions over raw disk | You browse folders, not disk sectors |
| Device management | Talks to hardware through drivers | Any printer just works after setup |
| Security | Logins, locks, permissions | Your sibling can't open your account |
| User interface | GUI (icons) or CLI (typed commands) | The desktop itself |
Quiz
Your laptop has 4 CPU cores but comfortably runs 30 programs "at the same time". Which OS function makes this illusion work?
- Process management, switching the CPU between programs very fast
- File management, storing 30 programs in folders
- Device management, adding extra virtual cores
- The GUI, showing 30 windows at once
Show the answer
Process management, switching the CPU between programs very fast
The OS scheduler gives each program a tiny slice of CPU time, switching thousands of times per second; humans cannot perceive the gaps, so it all feels parallel. Folders and windows have nothing to do with CPU sharing, and no software can add real cores. This "illusion of simultaneity" is a classic exam explanation.
Think first
Think it through
Chrome and a game are both running. A bug makes the game write into memory it never asked for. Why doesn't Chrome's data get corrupted? Which function saves it, and what happens to the game?
Show the answer
Memory management. The OS gave each program its own protected area of RAM; the moment the game touches an address outside its allocation, the OS blocks the access and usually kills the game (the familiar "app has stopped working"). Chrome never feels a thing. One program crashing without sinking the machine IS memory protection at work.
Watch out
Where marks leak
Calling the OS an application: it is the flagship of system software. Writing "OS is stored in RAM": it is stored on disk and loaded into RAM at boot (RAM is empty at power-on, remember the ROM lesson). And in "explain functions of OS" questions, listing names without one-line explanations earns half marks; each function needs its what-it-does line.
Theory
Where this leads
You have an entire subject on this next semester (BCA203 Operating System): scheduling algorithms, memory policies like the virtual memory you met two topics ago, deadlocks. Today's map of six functions is that subject's table of contents. And every app you will ever write in C, Python or Java runs as a guest of some OS, requesting resources exactly like these.
Summary
Key takeaways
- The OS is master system software between hardware and applications.
- Loaded at boot: ROM firmware finds it on storage and loads it into RAM.
- Six exam functions: process, memory, file, device management, security, user interface.
- Programs never touch hardware directly; they request through the OS.
- Examples: Windows, Linux, macOS, Android, iOS.
- Memory hook: the hotel's general manager.