Topic 8 · Notes

The operating system

These notes are part of a subscription

12 sections covering the whole specification for this topic, with worked examples.

Preview

What an operating system does

An operating system (OS) is the software that manages the computer's hardware and provides a platform for application programs to run on. Without it, every program would need to control the hardware itself.

Its jobs fall into two groups:

Managing resources

ResourceWhat the OS does
ProcessorDecides which process runs and for how long (scheduling)
MemoryAllocates memory to programs, keeps them apart, frees it when they finish
Input and output devicesControls devices through device drivers; handles interrupts; queues jobs for printers
Backing storageOrganises files into directories and keeps track of where each file is stored
SecurityUser accounts, passwords and access rights; keeps one program from damaging another

Providing an interface

  • a user interface, so people can run programs and manage files
  • an interface for programs: programs ask the OS to do things (open a file, print, allocate memory) through system calls, so they don't need to know the details of the hardware

Examples: Windows, macOS, Linux, Android, iOS. Embedded systems such as washing machines often have a very small OS, or none at all.

Also in these notes

  • The kernelAS
  • User interfacesAS
  • Directories and file attributesAS
  • Utility softwareAS
  • Modes of operationAS
  • Single-user and multi-user systemsA2
  • Interrupts and prioritiesA2
  • Memory managementA2
  • Process states and schedulingA2
  • Scheduling: a worked exampleA2
  • Buffering, spooling and double bufferingA2