Home › Theme A › A1 › A1.3 › A1.3.2

A1.3.2 What an operating system does

SL + HLCommand term: Describe

1. The OS control room

The OS has many jobs, all running in the background while you work. Click each function to explore it (a shows the ones you've seen).

2. Memory management: virtual memory simulator

RAM has 8 page frames. Each program needs some pages. Open and use programs: when RAM is full, the OS moves the pages of the least recently used program to virtual memory on the disk (a swap). Using a swapped-out program causes a page fault, and its pages must be loaded back.

💾 RAM (fast) — 8 frames
🗄️ Virtual memory on disk (slow)
Pages in RAM0 / 8
Page faults0
Pages swapped to disk0

3. Security: user accounts and permissions

The OS checks who you are (authentication) and what you are allowed to do (authorization) before every file action. Choose a user, a file and an action, then click Try it.

1. Log in as

2. Choose a file

3. Choose an action

4. Which OS function is it?

Score: 0 / 0

Learning objectives

By the end of this page you should be able to:

  1. Describe how the operating system maintains system integrity while running background operations.
  2. Describe memory management, the file system and device management.
  3. Describe scheduling, security and accounting.
  4. Describe the graphical user interface, virtualisation and networking functions.
  5. Identify which operating system function is involved in a given scenario.

System integrity and background operations

While you use applications, the OS constantly runs background operations: managing memory, scheduling processes, handling interrupts, updating, logging and checking for errors. It must do this while keeping the system stable, secure and consistent (system integrity), for example by protecting each program's memory, preventing two programs writing to the same file at once, and recovering safely from crashes.

The nine functions

Exam tip: "Describe" a function = what it does + how + why it matters. E.g. "Memory management allocates RAM to each process (what), using paging and virtual memory when RAM is full (how), so that several programs can run without overwriting each other (why)."

Use the 中文 button at the top to show or hide the Chinese terms.

Term中文Meaning

Choose an answer. You get instant feedback.

Score: 0 /

Write your answer first, then reveal the markscheme. These are exam-style practice questions written for this site.

1. Identify two functions of an operating system. [2]

Any two, [1] each: memory management; file system management; device management; scheduling / process management; security; accounting; providing a GUI / user interface; virtualization; networking.

2. Describe how an operating system uses virtual memory when RAM is full. [3]

Award [1] for each, up to [3]: part of secondary storage is used as an extension of RAM; pages of programs not currently being used are moved / swapped from RAM to the disk; this frees space in RAM for the active program; when a swapped page is needed (a page fault), it is copied back into RAM, possibly swapping out another page; this is slower because disk access is slower than RAM.

3. Explain how the operating system's security function protects a student's files on a shared school computer. [3]

Award [1] for each, up to [3]: each user must log in with a username and password (authentication); the OS stores permissions / access rights for each file (authorization); other students are denied read/write access to the student's files; administrators can set different privileges; activity can be logged.

4. Outline the role of device drivers in device management. [2]

A device driver is software that lets the OS communicate with a particular hardware device [1]; it translates general OS commands into device-specific instructions, so the OS can control many different devices [1].

5. A school runs several virtual machines on one physical server. Describe two benefits of virtualization in this scenario. [4]

Award [1] for the benefit and [1] for the description, ×2: lower cost [1], as one physical server replaces several, saving hardware and power [1]; isolation [1], as a crash or virus in one VM does not affect the others [1]; flexibility [1], as VMs can run different operating systems or be created, copied and backed up quickly [1]; better use of hardware [1], as resources are shared rather than left idle [1].