What an Operating System Is, and What It Is For

UNIT 2 • MODULE 3 • LESSON 01

Switch on a phone or a laptop and, within seconds, you can open a browser, play music and download a file at the same time. None of those apps knows how to talk to the screen, the memory chips or the Wi-Fi radio on its own. Something sits underneath all of them, sharing out the hardware and keeping each app out of the others’ way. That something is the operating system (OS).

This lesson opens Unit 2 Module 3. You will learn what an operating system is, the two big jobs it does, the resources it manages, and how it gets itself running when the power comes on (the bootstrap). Every later lesson on processes, scheduling, memory, files and devices zooms in on one part of the picture you build here.

What you will learn

  • A clear definition of an operating system.
  • The two purposes of an OS: managing resources and providing an interface.
  • The resources it manages: the processor, memory, storage and input/output devices.
  • Why a computer without an OS would be very hard to use.
  • The steps of the bootstrap process, from power-on to a usable system.
  • Common examples of operating systems and where they run.

Part 1: What is an operating system?

An operating system is the system software that controls the computer’s hardware, manages its resources, and provides services and an interface so that users and application programs can use the computer without dealing with the hardware directly.

That definition has three parts, and an exam answer that mentions all three will score well:

  • System software: it is not an application like a word processor. It runs the computer itself.
  • Controls and manages hardware resources: it decides which program uses the processor, which part of memory each program gets, and who may use a printer or a file.
  • Provides an interface and services: it gives the user a way to give commands (a command prompt, menus or a graphical desktop), and gives programs ready-made services such as “open this file” or “send this to the printer”.
Where the operating system sits User Application programs Operating system interface + resource manager CPU Memory Storage I/O Hardware
Programs never drive the hardware directly. They ask the operating system, which shares the hardware out fairly and safely.

Think of the OS as the manager of a busy restaurant kitchen. The cooks (application programs) each want the stove, the fridge and the sink. Without a manager they would fight over the equipment and nothing would get served. The manager gives each cook a turn, keeps track of who has what, and passes orders in from the customers (the user). The cooks never have to know how the gas line is connected; they just ask for a burner.

Examples you will meet

Operating systemWhere it usually runs
Microsoft WindowsDesktop and laptop computers
macOSApple desktop and laptop computers
Linux (for example Ubuntu)Servers, desktops, many embedded devices
AndroidPhones and tablets (built on Linux)
iOS and iPadOSApple phones and tablets
Real-time operating systemsCar engine controllers, medical devices, factory robots

Part 2: The two purposes of an operating system

Purpose 1: resource management

A resource is anything a program needs in order to run and that must be shared. The OS is the referee for four main kinds:

ResourceWhat the OS does with itLesson
Processor (CPU)Decides which process runs next and for how long; switches between processes so they appear to run at the same time.03 and 04
Memory (RAM)Gives each process its own area, keeps processes from overwriting each other, uses virtual memory when RAM runs short.05
Storage and filesOrganises data into files and folders, records where each file is on the disk, controls who may read or change it.06
Input/output devicesUses device drivers to talk to keyboards, screens, printers and network cards; queues requests so devices are shared fairly.07

Why does this matter? Because resources are limited and shared. There is usually one processor (or a few cores) but dozens of running programs. There is a fixed amount of RAM. There is one printer for a whole office. Without a manager, two programs could write to the same memory, or two documents could print on top of each other.

Purpose 2: providing an interface

The second purpose is to make the computer usable. The OS hides the messy detail of the hardware behind something simpler:

  • For the user: a user interface. It could be a command prompt where you type commands, a menu you choose from, or a graphical user interface (GUI) with windows, icons and a pointer. Lesson 07 compares them.
  • For programs: a set of services (often called system calls). A C program that calls fopen does not know which sectors of the disk hold the file; the OS works that out.

Notice the link with the course’s earlier work on C. When your C program used printf and fopen, the C library passed those requests to the operating system, which actually drew the characters in the terminal window and found the file on the disk. See How Programs Are Translated and Run for how a program gets loaded and run.

A useful extra: convenience, efficiency and the ability to evolve

Textbooks often sum up an operating system’s goals in three words. Convenience: the computer is easier to use. Efficiency: hardware is kept busy and shared well. Ability to evolve: new hardware and new services can be added (for example, by installing a new device driver) without rewriting every program.

Try it 1Which resource is the OS managing?

Each situation shows the operating system at work. Choose the resource it is managing. Twelve items.

Part 3: Life without an operating system

Very simple devices, such as a microwave oven controller, run a single program with no OS at all. That works because there is only one job and nothing to share. On a general-purpose computer, removing the OS would mean that every program had to:

  • contain its own code to drive the screen, keyboard, disk and network card, for every model of each;
  • avoid clashing with any other program that happened to be in memory;
  • manage its own files on the raw disk, without folders or names;
  • be started by hand, because nothing would load it from storage.

Programs would be huge, unsafe and hard to write, and only one could sensibly run at a time. The OS solves all of these once, for everybody.

Part 4: Getting started: the bootstrap process

When the power is off, the operating system is just files on a disk or flash storage. RAM is empty, and the processor can only run instructions that are in memory. So how does the OS get into RAM? The answer is a short chain of programs, each loading a bigger one, called the bootstrap (from the saying “to pull yourself up by your bootstraps”). The process of starting the computer this way is called booting.

1. Power on.
2. CPU starts at a fixed address
   in ROM (firmware: BIOS/UEFI).
3. Firmware runs the power-on
   self test (POST).
4. Firmware finds a boot device
   (disk, SSD, USB, network).
5. Firmware loads the boot loader
   from that device into RAM.
6. Boot loader loads the OS
   kernel into RAM and starts it.
7. Kernel sets up memory, loads
   device drivers, starts system
   services.
8. Login screen or desktop
   appears: the system is ready.

Two details are worth remembering. First, the very first instructions must be in non-volatile memory (ROM or flash firmware), because RAM loses its contents when the power is off. Second, the firmware is small and general. Its job is only to test the hardware and find something bigger to load. Each stage hands control to the next.

Booting is not only started by a person pressing a button. A server can be woken over the network (a feature known as Wake-on-LAN), and a router may reboot itself after a firmware update. The steps are the same.

Cold boot and warm boot

A cold boot starts from power off, so the full test runs. A warm boot (a restart) reloads the OS without switching off the power; some checks are skipped. Restarting is a common fix because it clears RAM and starts every process fresh.

Try it 2Put the bootstrap in order

Tap the steps in the order they happen, from pressing the power button to seeing the login screen.

Your order so far

    Tap the step that comes next

    Part 5: Common mistakes

    • Calling the OS "the screen you see". The desktop is only the interface. Most OS work (scheduling, memory, files) happens where you cannot see it.
    • Listing apps as OS functions. A word processor or a browser is application software. The OS provides services to them.
    • Saying the OS is stored in RAM when the computer is off. It is stored on secondary storage and loaded into RAM during booting.
    • Vague purposes. "It runs the computer" earns little. Say "it manages resources such as the processor, memory and devices, and provides a user interface".

    Try it 3OS purpose and boot drill

    Pick a mode. "Resources" asks which resource a short example is about. "Boot" asks about the order of the bootstrap.

    Summary

    IdeaRemember
    DefinitionSystem software that manages hardware resources and provides an interface and services.
    Purpose 1Resource management: processor, memory, storage/files, input/output.
    Purpose 2Interface: for the user (command, menu, GUI) and for programs (services).
    BootstrapFirmware in ROM → self test → boot device → boot loader → kernel → drivers and services → ready.
    Why ROM firstRAM is volatile, so the first instructions must be in non-volatile memory.

    Review questions

    1. Define the term operating system.

    Show answer

    System software that controls the computer’s hardware, manages resources such as the processor, memory, storage and devices, and provides an interface and services for users and programs.

    2. State the two main purposes of an operating system.

    Show answer

    Resource management (sharing and protecting the processor, memory, storage and I/O devices) and providing an interface (for the user, and services for programs).

    3. Name four resources an operating system manages and give one task for each.

    Show answer

    Processor: decides which process runs next. Memory: allocates and protects each process’s area. Storage: organises files and folders. I/O devices: controls them through drivers and queues requests.

    4. Explain why the first instructions run at power-on are stored in ROM rather than RAM.

    Show answer

    RAM is volatile and is empty when the power is off. ROM (firmware) keeps its contents without power, so the CPU can find instructions there immediately.

    5. Describe the bootstrap process.

    Show answer

    Power on; the CPU runs firmware in ROM; a self test checks hardware; the firmware finds a boot device and loads a boot loader into RAM; the boot loader loads the OS kernel; the kernel loads drivers and starts services; the login screen appears.

    6. Give two reasons why a general-purpose computer needs an operating system.

    Show answer

    For example: several programs must share one processor and memory safely; programs should not each need their own code to drive every device; users need a convenient way to give commands and manage files.

    7. Distinguish between a cold boot and a warm boot.

    Show answer

    A cold boot starts from power off and runs the full self test. A warm boot restarts the OS without switching the power off, skipping some checks.

    8. Explain how the OS helps a C program that calls fopen.

    Show answer

    The program asks the OS for a service. The OS finds where the file is on the storage device, checks permissions and gives the program a way to read or write it, so the program never deals with disk sectors directly.

    Homework

    1. Open the task manager (Windows) or activity monitor (macOS) on a computer you use. List three running processes and say which resources each is using.
    2. Draw the layered diagram from Part 1 from memory and label each layer with one example.
    3. Write a short paragraph explaining the bootstrap to a Form 1 student, using an everyday comparison.
    4. Research one real-time operating system and state one device that uses it.

    Mastery quiz: What an Operating System Is

    This 10-question quiz is separate from the short Quick quiz at the end of the lesson. Score 8/10 or higher to earn this lesson’s badge. Your best score is saved in this browser on this device.

    Mastery quiz: What an Operating System Is, and What It Is For

    Your course badges: loading saved progress…

    View badges

      No course badges earned yet. Score 8/10 in a lesson quiz to earn its badge.

      Saved in this browser on this device. Clearing browser data may remove your badges.

      Answer all 10 questions. Earn this lesson’s badge at 8/10 or higher. Read the explanations, revisit the Try it activities and retry as often as you need. These are self-study badges, not formal grades.

      1. Which statement best defines an operating system?
      2. Which is NOT a resource managed by the operating system?
      3. Sharing processor time between running programs is called...
      4. Where are the first instructions run at power-on stored?
      5. Which program loads the OS kernel into memory?
      6. Which is an example of the OS providing a service to a program?
      7. Which is a user interface provided by an OS?
      8. What does the power-on self test do?
      9. Why can’t the OS be loaded from RAM at power-on?
      10. Which is application software rather than an OS?

      Exam tips

      Definitions first. Questions on this topic often start with "state the purpose" or "explain the concept". Give both purposes (resource manager and interface) and name at least two resources. A one-word answer such as "control" will not earn full marks.

      Specimen Unit 2 Paper 01 (2021). Several items in the Module 3 block (31 to 45) test OS ideas you will meet in Lessons 03 to 07. Use this lesson’s resource table as a map: work out which resource each item is about before you look at the options.

      Bootstrap answers. If asked to describe the bootstrap, give the steps in order and say why the first step uses ROM. Mark schemes reward the sequence and the reason.

      Past paper practice. Try the operating systems parts of 2018 Unit 2 Paper 02 Question 5 after Lessons 03 and 04. A worked answer is on the CS Solutions page.

      Previous: Unit 2 • Module 2 • Lesson 10 – Professional Issues: Intellectual Property, Privacy, Computer Misuse and Threats. Next: Unit 2 • Module 3 • Lesson 02 – How Operating Systems Evolved: From Batch Jobs to Multi-User Systems.

      Syllabus link: CAPE Computer Science (CXC A19/U2/21), Operating Systems and Computer Networks (Unit 2, Module 3). Specific Objective 1: explain the concept of an operating system (definition; purpose: resource management of memory, input/output and processor; interface). The bootstrap process from Specific Objective 3 is also introduced here.

      Video search terms

      Search YouTube for: "what is an operating system", "operating system resource management explained", "computer boot process BIOS UEFI bootloader".

      Try it 4Quick quiz

      Tap an answer. All eight questions are self-checks on this lesson.

      Updates

      2026/12/01

      - First version of the lesson.

      © 2026 islandclass.org

      Leave a Reply