In simple terms
A friendly intro before the formal notes — no formulas yet.
The Computer's Conductor
The operating system is the master program that manages all of the computer's hardware and software. It acts as the essential intermediary, allowing you and your applications to interact with the complex electronics inside.
Think of an OS as a restaurant's general manager. The manager doesn't cook the food (the CPU) or serve the tables (I/O devices) themselves, but they coordinate everything. They take orders from customers (user input), assign tasks to the chefs (processes), manage the pantry's ingredients (memory), and ensure the customers have a pleasant dining experience (the user interface). Without the manager, the restaurant would be chaos; without an OS, a computer is just a box of inert components.
- 1
A user issues a command, such as clicking an application icon to open it.
- 2
The OS locates the application on secondary storage, allocates a portion of RAM, and loads the program's instructions into it.
- 3
The OS manages the hardware on behalf of the application, handling screen output, keyboard input, and network requests via device drivers.
- 4
The OS scheduler allocates CPU time to the new application process, managing it alongside all other running processes to ensure the system remains responsive.
Explore the concept
Use the live diagram and synced steps — play it or tap a step card to walk through.
Full topic notes
Formal explanation with the rigour you need for the exam.
The Core Purpose: Abstraction and Management
At its heart, an operating system has two main goals. The first is to provide abstraction. It hides the immense complexity of the hardware from the user and from application programs. A programmer doesn't need to know how to send specific voltage signals to a particular brand of hard drive; they just tell the OS to 'save a file', and the OS handles the rest. The second goal is management. The OS acts as a resource manager, carefully and efficiently controlling access to the CPU, memory, storage, and peripherals.
Key Function 1: Hardware Management
The OS has complete control over the computer's hardware. It manages everything from the processor to the smallest peripheral, ensuring all components work together harmoniously.
Processor (CPU) Management: The OS decides which process gets to use the CPU and for how long. It uses scheduling algorithms to allocate CPU time, allowing for multitasking where multiple programs appear to run at once.
Memory Management: The OS allocates blocks of main memory (RAM) to programs and data. It ensures that one program cannot access or corrupt the memory space of another. It also provides virtual memory, using secondary storage to extend RAM when needed.
I/O Device Management: The OS communicates with input/output devices (like keyboards, printers, and network cards) through software called device drivers. It manages data transfer to and from these devices, often using interrupts to signal completion or errors.
Secondary Storage Management: The OS manages all secondary storage devices (HDDs, SSDs). It is responsible for file systems, which track where files are physically stored, available space, and access permissions.
Key Function 2: Software Management
Beyond the hardware, the OS is also the master of the software environment. It provides the platform upon which all other software runs and enforces the rules of engagement.
Process Management: Any running program is a 'process'. The OS is responsible for starting, stopping, pausing, and scheduling these processes. It handles context switching to enable multitasking and ensures processes are isolated from one another.
File Management: The OS presents a logical view of storage through a file system, typically a hierarchical structure of files and folders. It handles all file operations (create, read, update, delete) and manages file attributes and permissions.
Security and User Management: The OS provides security features, such as requiring user authentication (username/password). It manages user accounts and permissions, controlling which users can access which files and system resources.
Key Function 3: Providing a User Interface
The user interface (UI) is the part of the OS that allows the user to interact with the computer. It translates human-friendly actions into commands the computer's kernel can understand. There are several types of UI, with two being most common in desktop computing.
Graphical User Interface (GUI): The most common type on modern PCs and smartphones. It is a visual interface based on Windows, Icons, Menus, and a Pointer (WIMP). It is intuitive and easy to learn, relying on direct manipulation of on-screen objects with a mouse or touch.
Command Line Interface (CLI): A text-only interface where the user types commands to instruct the computer. While it has a steeper learning curve, it can be more powerful, faster, and more scriptable for expert users and system administrators.
Other Interfaces: Modern operating systems also support other UIs, such as touch interfaces (for tablets/smartphones) and voice interfaces (like Siri or Google Assistant), which are managed by the OS.
In exams, you will often be given a scenario and asked to explain the role of the OS. Avoid simply listing the functions. Instead, apply them to the scenario. Use specific terminology like 'process scheduling', 'memory allocation', 'device driver', 'interrupt handling', and 'user interface' to show a deep understanding of how the OS achieves its goals.
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
A user connects a new printer to their computer via a USB cable and prints a document. Explain, step-by-step, the role of the operating system in this process.
- 1
Hardware Detection: The OS's Plug and Play (PnP) service detects that a new device has been connected to a USB port.
A user is editing a large video file. The editing software becomes unresponsive. The user opens the Task Manager (or Activity Monitor) to close the application. Describe the role of the OS in this scenario.
- 1
Providing System Utilities: The Task Manager is a utility program provided by the OS. It gives the user a view of all currently running processes and their resource consumption (CPU, memory).
How it all connects
The big idea sits in the middle — tap a linked idea to explore the link.
Tap a linked idea to see how it connects back to the main topic — that connection is what examiners reward.
Glossary
Key terms for this topic — skim now; the Check step will test them.
- abstraction
The first is to provide abstraction. It hides the immense complexity of the hardware from the user and from application programs.
- Resource management
The management of all hardware and software components, including CPU time, memory, storage space, and peripheral devices, ensuring efficient and fair allocation.
- Device driver
A specific piece of software that allows the operating system to communicate with and control a particular hardware device (e.g., a printer driver, a graphics card driver).
- difference between a CLI
A Command Line Interface (CLI) is text-based and requires users to type commands. A Graphical User Interface (GUI) is visual, using icons, windows, and menus (WIMP).
- Process management
The OS function that involves creating, scheduling, executing, and terminating processes (running programs), ensuring they do not interfere with each other.
- Memory management
The OS function of allocating and managing the computer's main memory (RAM). It ensures processes have enough memory and do not overwrite each other's data, often using techniques like paging and virtual memory.
- Interrupt
A signal sent to the CPU from a hardware device or software, indicating an event that needs immediate attention. The OS manages an interrupt service routine to handle these events.
- kernel of an OS
The kernel is the central, core component of the operating system. It manages the most low-level and critical tasks, such as memory management, process scheduling, and hardware communication.
Name it
Read the meaning, then pick which of this lesson’s terms it describes. Miss one and you see what your choice really means.
The management of all hardware and software components, including CPU time, memory, storage space, and peripheral devices, ensuring efficient and fair allocation.
Quick check
Write your answer first, then compare it with the model one — the gap is what you would have lost.
Teach it back
If you can explain it simply, you own it — gaps here are marks you’d lose.
Teach it back
Explain this topic as if teaching a friend. We name the gaps an examiner would still dock.
Revision flashcards
Guess first, then flip — retrieval beats re-reading.
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
Processor (CPU) Management: The OS decides which process gets to use the CPU and for how long. It uses scheduling algorithms to allocate CPU time, allowing for multitasking where multiple programs appear to run at once.
Memory Management: The OS allocates blocks of main memory (RAM) to programs and data. It ensures that one program cannot access or corrupt the memory space of another. It also provides virtual memory, using secondary storage to extend RAM when needed.
I/O Device Management: The OS communicates with input/output devices (like keyboards, printers, and network cards) through software called device drivers. It manages data transfer to and from these devices, often using interrupts to signal completion or errors.
Secondary Storage Management: The OS manages all secondary storage devices (HDDs, SSDs). It is responsible for file systems, which track where files are physically stored, available space, and access permissions.
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Purposes of an OS
Purposes of an OS
Extra simulations & links
PhET, GeoGebra and other curated tools — open in a new tab.
Frequently asked
Checkpoint
One marked question is worth ten re-reads — close the loop before you move on.
Reading it isn’t knowing it — prove it.
Before you move on: do Purposes of an OS on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.
Discuss Purposes of an Operating System (OS)
Ask, share and discuss with other Computer Science students