• 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

  1. You (the user) Give commands by clicking, touching or typing.
  2. Application software Does your task, such as a word processor or a browser.
  3. Operating system Passes requests to the hardware and shares it between programs.
  4. Hardware CPU, memory, disk and printer do the actual work.
  1. You (the user) give commands by clicking, touching or typing.
  2. Application software, such as a word processor or a browser, does your task.
  3. The operating system passes the application's requests to the hardware and shares the hardware between programs.
  4. 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

FunctionWhat the OS doesExample
Process managementStarts and stops programs and shares the CPU's time among themMusic plays while you type a letter
Memory managementGives each running program its share of RAM and takes it back when the program closesClosing a program frees memory for another
File managementCreates, names, saves, copies, moves and deletes files and foldersSaving a document in a folder
Device managementControls printers, keyboards, screens and other devices through driversPrinting a page
Security and usersChecks passwords, keeps each user's files separate, controls permissionsSigning in with your own account
User interfaceGives 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

TypeMeaning
Single-userOne person uses the computer at a time
Multi-userSeveral users can use the computer's resources at the same time
MultitaskingSeveral programs run at once, the CPU switching quickly between them
BatchSimilar jobs are collected and run together without a user waiting at the machine
Real-timeMust 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

  1. Press the power button
  2. POST The firmware (BIOS or UEFI) checks memory, keyboard and basic hardware.
  3. Find the boot loader The firmware finds it on the disk.
  4. Load the kernel The boot loader loads it from the disk into RAM.
  5. Sign-in screen The OS starts its services, then shows the desktop.
  1. You press the power button.
  2. The firmware (BIOS or UEFI) stored in a chip runs the POST (Power-On Self-Test) to check memory, keyboard and other basic hardware.
  3. The firmware finds the boot loader on the disk.
  4. The boot loader loads the operating system's kernel from the disk into RAM.
  5. 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. 1. Which of these is an operating system?

    1. A word processor
    2. Linux
    3. A web browser
    4. 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. 2. The core of the operating system that stays in memory and directly controls the hardware is called the:

    1. Kernel
    2. Shell
    3. Desktop
    4. 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. 3. Restarting a computer without switching off its power is called:

    1. A cold boot
    2. POST
    3. Logging off
    4. 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. 4. Which function of the operating system decides how RAM is shared among running programs?

    1. File management
    2. Device management
    3. Memory management
    4. 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. 5. Which type of operating system is needed where a response must come within a strict, fixed time, such as an airbag system?

    1. Batch operating system
    2. Real-time operating system
    3. Single-user operating system
    4. 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.

Privacy · Terms · Refunds · Delivery