- Foundation
- About 14 min
- 5 practice questions
What an operating system does and how a computer starts
Explain what an operating system is, list its main jobs, name common operating systems and their types, and describe what happens from switching on to the desktop.
If something looks wrong, please tell us.
When you switch on a computer or phone, the first program that takes charge is the operating system. Every other program depends on it. This lesson, the start of the CCC course's chapter on GUI-based operating systems, explains in plain words what an operating system is and what it does for you.
What is an operating system?
An operating system (OS) is the system software that manages the computer's hardware and software and lets you use the computer. It sits between you and the machine. Without it you would have to give instructions to the hardware directly in machine language.
Where the operating system sits
- You (the user) Give commands by clicking, touching or typing.
- Application software Does your task, such as a word processor or a browser.
- Operating system Passes requests to the hardware and shares it between programs.
- Hardware CPU, memory, disk and printer do the actual work.
- You (the user) give commands by clicking, touching or typing.
- Application software, such as a word processor or a browser, does your task.
- The operating system passes the application's requests to the hardware and shares the hardware between programs.
- The hardware (CPU, memory, disk, printer) does the actual work.
The core of the operating system, which stays in memory and directly controls the hardware, is called the kernel. The part that takes your commands and passes them to the kernel is called the shell; it may be a graphical desktop or a typed command line.
The main jobs of an operating system
| Function | What the OS does | Example |
|---|---|---|
| Process management | Starts and stops programs and shares the CPU's time among them | Music plays while you type a letter |
| Memory management | Gives each running program its share of RAM and takes it back when the program closes | Closing a program frees memory for another |
| File management | Creates, names, saves, copies, moves and deletes files and folders | Saving a document in a folder |
| Device management | Controls printers, keyboards, screens and other devices through drivers | Printing a page |
| Security and users | Checks passwords, keeps each user's files separate, controls permissions | Signing in with your own account |
| User interface | Gives you a way to give commands: graphical (GUI) or typed (CLI) | Clicking an icon or typing a command |
Common operating systems
- Microsoft Windows: widely used on desktops and laptops; proprietary.
- Linux: open source, with many distributions such as Ubuntu, Debian and Fedora. BOSS (Bharat Operating System Solutions) is a Linux distribution developed in India by C-DAC.
- macOS: Apple's operating system for its computers; proprietary.
- Android and iOS: operating systems for phones and tablets. Android is built on the Linux kernel.
Types of operating system
| Type | Meaning |
|---|---|
| Single-user | One person uses the computer at a time |
| Multi-user | Several users can use the computer's resources at the same time |
| Multitasking | Several programs run at once, the CPU switching quickly between them |
| Batch | Similar jobs are collected and run together without a user waiting at the machine |
| Real-time | Must respond within a strict, fixed time, as in air traffic control or a car's airbag system |
How a computer starts: booting
How a computer boots
- Press the power button
- POST The firmware (BIOS or UEFI) checks memory, keyboard and basic hardware.
- Find the boot loader The firmware finds it on the disk.
- Load the kernel The boot loader loads it from the disk into RAM.
- Sign-in screen The OS starts its services, then shows the desktop.
- You press the power button.
- The firmware (BIOS or UEFI) stored in a chip runs the POST (Power-On Self-Test) to check memory, keyboard and other basic hardware.
- The firmware finds the boot loader on the disk.
- The boot loader loads the operating system's kernel from the disk into RAM.
- The operating system starts its services and shows the sign-in (login) screen, then the desktop.
Starting a computer that was completely switched off is a cold boot. Restarting it without cutting the power, for example using the Restart option, is a warm boot.
Worked example 1: which jobs are involved?
Ravi prints a long document while he keeps typing in another window. Process management lets both programs run, sharing the CPU. Memory management gives each program its own part of RAM. Device management sends the pages to the printer through the printer's driver. File management reads the document from the disk. One simple action uses four OS functions.
Worked example 2: cold or warm boot?
In the morning Sita switches on a computer that was shut down overnight: cold boot. After installing new software she is asked to restart and clicks Restart: warm boot. The power never went off, so it is warm.
OS = manager of processes, memory, files, devices, security and the user interface. Kernel = core; shell = interface. Power on → POST → boot loader → kernel → sign-in.
Key takeaways: the operating system is system software that manages hardware and software and gives you an interface. Windows, Linux and macOS run on computers; Android and iOS on phones. Booting starts with the POST and ends at the sign-in screen.
Check your understanding
-
1. Which of these is an operating system?
- A word processor
- Linux
- A web browser
- A spreadsheet
Show answer
Answer: B. Linux is an operating system. A word processor, a web browser and a spreadsheet are application software that run on top of an operating system.
-
2. The core of the operating system that stays in memory and directly controls the hardware is called the:
- Kernel
- Shell
- Desktop
- Icon
Show answer
Answer: A. The kernel is the core of the OS. The shell is the interface that passes your commands to the kernel, and the desktop and icons are parts of the graphical interface.
-
3. Restarting a computer without switching off its power is called:
- A cold boot
- POST
- Logging off
- A warm boot
Show answer
Answer: D. A warm boot restarts the computer while the power stays on. A cold boot starts from power off, POST is the hardware check during start-up, and logging off only ends a user's session.
-
4. Which function of the operating system decides how RAM is shared among running programs?
- File management
- Device management
- Memory management
- User interface
Show answer
Answer: C. Memory management gives each program its share of RAM and frees it when the program closes. File management deals with files on storage, device management with hardware devices.
-
5. Which type of operating system is needed where a response must come within a strict, fixed time, such as an airbag system?
- Batch operating system
- Real-time operating system
- Single-user operating system
- An application program
Show answer
Answer: B. A real-time OS guarantees a response within a fixed time. A batch system runs collected jobs without hurry, single-user describes how many people use it, and an application program is not an OS.
Sign in to keep track of the lessons you finish.