IB Computer Science2027 syllabus
Level view
A1.3.1

The role of operating systems

SL & HL20 min readLesson

In one sentence: An operating system is the core system software that sits between users, applications, and physical hardware, hiding low-level hardware complexity behind consistent services while managing CPU time, memory, storage, and devices efficiently and securely.

What you will learn

By the end of this lesson, you should be able to:

  • Explain why an operating system (OS) acts as the essential intermediary between users, applications, and hardware.
  • Describe how hardware abstraction hides low-level component complexity behind high-level interfaces.
  • Explain the four core resource-management duties of an OS: CPU, memory, storage, and device management.
  • Identify widely used desktop, laptop, and mobile operating systems.

Before you begin

Review Function and interaction of the main central processing unit components (A1.1.1), Purposes of different primary memory types (A1.1.4), and Internal and external types of secondary memory storage (A1.1.7) so you remember what CPUs, RAM, and secondary drives do physically. Here we move up one layer to the software that coordinates all of those parts together.

Key words

TermSimple meaning
Operating system (OS)Fundamental system software that manages computer hardware and software resources and provides common services for programs.
Hardware abstractionHiding the complex, hardware-specific details of CPUs, RAM, drives, and peripherals behind standardized, simpler software interfaces.
IntermediaryA software layer sitting between users/applications and physical hardware so requests are checked, translated, and safely coordinated.
Resource managementCoordinating limited hardware resources (CPU time, memory space, storage capacity, and peripherals) fairly and securely across competing tasks.
Virtual memoryA memory-management mechanism in which the OS uses secondary storage space to extend physical RAM capacity when active demand exceeds physical memory.
Device driverSpecialized translator software enabling the OS to communicate with and control a specific piece of hardware through a uniform interface.

The idea, step by step

1. The OS as an intermediary and hardware abstractor

Without an operating system, every program (such as a web browser, a spreadsheet, or a game) would need its own custom machine-code routines to control exact CPU registers, track raw physical RAM addresses, spin disk sectors, and speak electrical timing protocols to every keyboard, screen, or printer model. Worse still, two programs running together could easily overwrite each other's memory or lock the same peripheral.

An operating system (OS) prevents these conflicts by sitting directly above the hardware as a trusted intermediary:

LayerRoleInterface and signals
Users and applicationsRun user tasks such as browsing, editing, and executing student programs.Send high-level calls to the OS and receive consistent UI and API responses.
Operating system (OS)Provides hardware abstraction and resource management.Translates high-level requests into verified low-level hardware operations.
Physical hardwareExecutes instructions and stores data (CPU, RAM, SSD/HDD, input/output devices).Exchanges low-level control signals and hardware data with the OS.

Through hardware abstraction, the OS hides messy physical implementation details behind stable, high-level services and interfaces (such as "open file", "allocate memory", or "print page"):

  • For everyday users: You click an icon, type on any USB keyboard, or drag a file into a folder without needing to know disk block numbers, RAM addresses, or electrical voltages.
  • For programmers and applications: Software calls standardized OS interfaces instead of rewriting device-specific hardware instructions for every brand of SSD, graphics card, or motherboard.

2. Core system resource management

Along with abstracting hardware, the primary operational job of an OS is resource management: allocating limited system resources cleanly, reliably, and securely across all running tasks:

Resource domainWhat the OS managesWhy it matters
CPU managementAllocates CPU execution time among competing processes and coordinates switching between them.Keeps multiple programs responsive and ensures fair, efficient processor use.
Memory managementAllocates and de-allocates primary memory (RAM) to programs, keeps process regions isolated, and manages virtual memory when physical RAM fills up.Prevents programs from overwriting one another and keeps larger workloads running beyond physical RAM limits.
Storage managementOrganizes files and directories on secondary storage drives (HDDs, SSDs, flash drives) and handles reliable reading and writing.Keeps stored data structured, recoverable, and protected against accidental corruption.
Device managementCoordinates keyboards, displays, printers, network adapters, and external drives using device drivers and unified interfaces.Allows applications to interact reliably with diverse hardware peripherals without bespoke code.

3. Common modern operating systems

Although all general-purpose operating systems perform hardware abstraction and resource management, different OS families target different device categories:

  • Desktops, laptops, and servers: Microsoft Windows, Apple macOS, and Linux distributions are designed for multi-window multitasking, full peripheral connectivity, and flexible local or network storage.
  • Smartphones and tablets: Google Android and Apple iOS optimize these same abstractions for touch interfaces, mobile sensors, wireless connectivity, and tight battery-power management.

Worked example

Consider what happens when you edit a photograph in an image editor and click Save to export it onto a USB flash drive:

  1. What you and the application see (abstraction): The editor simply calls the OS "write file to chosen folder" service and picks /USB_Drive/photo.png. Neither you nor the application specifies USB electrical voltage packets, flash block wear-levelling, or which exact RAM addresses hold the image pixels.
  2. What the OS manages underneath (resources):
    • CPU management: Schedules time slices for the image editor's PNG encoding thread while keeping the desktop responsive.
    • Memory management: Ensures the image buffer stays in protected RAM allocated only to the editor process (or temporarily paged via virtual memory if RAM is tight) and frees temporary buffers once finished.
    • Storage management: Updates the USB drive's file system directory table and writes the bytes cleanly to available storage sectors.
    • Device management: Passes write requests through the USB controller and storage device driver until the flash drive confirms completion.

Hardware abstraction therefore separates what the application asks to do from how physical hardware carries it out.

Check your understanding

  1. What does it mean to say that an operating system abstracts hardware complexities?
  2. Give one benefit hardware abstraction brings to an end user and one benefit it brings to an application developer.
  3. Name the four core resource-management domains that form the primary role of an operating system.
  4. How does a device driver help an operating system coordinate hardware peripherals?

Common mix-up

It is easy to think: Application programs like a word processor or Python script communicate directly with RAM chips and SSD sectors whenever they open a file, or the OS is just the graphical wallpaper and taskbar.

Instead, remember: Modern applications do not bypass the OS to manipulate hardware directly, because doing so would risk overwriting another program's memory or corrupting storage. The OS acts as the required intermediary layer beneath all applications, providing both the underlying hardware-abstraction and resource-management engine and user-facing interfaces.

Quick recap

  • An operating system (OS) is fundamental system software acting as an intermediary between users/applications and hardware.
  • Hardware abstraction hides complex low-level component details behind standardized services and interfaces for users and software developers.
  • The OS manages four core resource domains: CPU time, primary/virtual memory, secondary storage, and peripheral devices (via device drivers).
  • Widely used examples include Windows, macOS, and Linux (computers and servers), and Android and iOS (portable mobile devices).

Textbook reading

  • Computer Science (Baumgarten, Ganea, Turland, 2025), A1 Computer fundamentals > A1.3 Operating systems and control systems > A1.3.1 The role of operating systems, Book p. 67 (PDF p. 77).
  • Read this section alongside the worked example above; this original explanation does not replace the textbook.

Sources and further learning

  • IB Computer Science Guide (first assessment 2027), A1.3.1: Describe the role of operating systems (Guide p. 30; PDF p. 36).
  • Computer Science (Baumgarten, Ganea, Turland, 2025), A1.3.1 The role of operating systems, Book p. 67 (PDF p. 77). All tables and worked examples above are original.
Check your understanding5 questions · 8 marks · 10 min
Take the lesson check
Something not right?