Learn
4.1.2 | OPERATING SYSTEMS
01 | THE COMPUTER’S RESOURCE MANAGER
An operating system (OS) is system software that manages the computer’s resources and provides services for applications and users. Resources include processor time, memory, storage and peripherals.
Imagine editing a report while music plays and another file downloads. These programs share the same computer. The OS helps them obtain resources and respond to events without each application having to manage the whole machine.
Examples include Windows, macOS, Linux, Android and iOS. The OS is software; the CPU is the hardware that executes its instructions.
02 | HOW APPLICATIONS REACH HARDWARE
Word processor · browser · music player
Request services ↕ Return results
Files · memory · processor time · device services
Manage access ↕ Receive input and events
CPU · RAM · storage · keyboard · screen · printer
This is a simplified view of the roles. An application can request a file to be saved; the OS provides file and storage services. A printer driver helps the OS communicate with the printer.
Providing a platform for applications means offering the environment and services they need to run. An application must be compatible with the relevant OS and hardware; a program made for one system does not automatically run on every other system.
03 | PROVIDING AN INTERFACE
A user interface lets a user interact with the computer. Through it, you can launch programs, manage files or change settings.
| Interface | How it works | Example |
|---|---|---|
| Graphical user interface (GUI) | Use visual controls such as windows, icons, menus and buttons | Open a folder by selecting its icon |
| Command-line interface (CLI) | Enter text commands | Type a command to list files |
A GUI can make unfamiliar options easier to discover. A CLI can let a knowledgeable user perform precise tasks and automate repeated operations. Neither changes the OS’s role as resource manager.
An application also has its own interface. A word processor’s formatting ribbon belongs to that application, rather than being the whole operating system.
04 | MANAGING FILES
The OS organises files and directories and supports actions such as creating, opening, saving, copying, moving, renaming and deleting files.
It keeps track of file information and storage locations through the file system. It also controls access using permissions where supported.
Example: when you save report.docx in a chosen folder, the application requests the operation. The OS checks access and uses file-system services to store the data and maintain the file’s information.
A folder is a logical organisation of files. It is not a separate physical box inside the SSD.
05 | MANAGING MEMORY
Running programs need memory for instructions and working data. The OS keeps track of memory use, allocates memory to processes and reclaims memory when it is no longer needed.
It also helps protect processes so that one program cannot freely overwrite another program’s memory.
Example: a browser and a word processor both need RAM. The OS manages their allocations rather than letting each take any location it wants.
If needed, an OS can use virtual memory, moving some pages between RAM and secondary storage. This does not increase physical RAM, and frequent transfers can make the computer slower.
06 | MANAGING MULTITASKING
Multitasking allows several tasks to make progress over the same period. The OS schedules which ready process gets processor time.
On a single core, rapid switching between tasks can make them appear to run simultaneously. On multiple cores, some tasks can execute in parallel.
| Illustrative time slice | Task using one core |
|---|---|
| 1 | Word processor |
| 2 | Music player |
| 3 | Browser |
| 4 | Word processor again |
When one task waits for input or a device, the OS can let another ready task use the processor. The OS does not create extra CPU cores or guarantee equal time for every task.
07 | MANAGING PERIPHERALS AND DRIVERS
A peripheral is a device connected to the computer for functions such as input, output or storage. The OS coordinates communication with these devices.
A device driver is software that enables the OS to communicate with a particular device or device class. It handles the device-specific details behind a more general request.
Example: an application requests printing. The OS manages the print job, and the driver helps communicate the required instructions and data to the printer. Jobs can wait in a print queue while the printer is busy.
The driver is software; the printer is hardware. Some drivers are supplied with the OS, while others are installed separately.
08 | HANDLING INTERRUPTS
An interrupt is a signal or event that requests the processor’s attention. It can arise from hardware or software.
For example, keyboard input or a device needing attention can generate a hardware interrupt. The OS helps arrange the handling of the event rather than requiring the current application to constantly check every device.
In a simplified model, the current task’s state is saved, a suitable interrupt service routine (ISR) handles the event, and the saved state is restored so execution can resume when appropriate. Interrupt priorities affect which request is handled first.
Handling an interrupt is not the same as closing the current application. The precise sequence depends on the system and the event. A later lesson explores interrupts in more detail.
09 | PROVIDING SYSTEM SECURITY
The OS provides mechanisms to protect the system and its resources. These can include login authentication, access permissions and protection that limits what processes may do.
Authentication checks identity, for example through a password. Authorisation determines what that user is allowed to access or change.
Example: a student may be allowed to read shared lesson files but not change operating-system settings or install software. Restricting privileges helps reduce unwanted changes.
OS security features reduce risk, but do not guarantee that every attack or mistake is prevented. Security also depends on appropriate settings, updates and user behaviour.
10 | MANAGING USER ACCOUNTS
A user account links a user to settings and access rights. The OS manages accounts so different people can use the same computer with suitable permissions.
An administrator account normally has broader privileges than a standard account. Individual accounts can keep users’ files and settings separate and allow permissions to be applied.
Example: a school computer has student accounts for ordinary work and an administrator account for approved system changes. An individual login can also help identify which account performed an action.
Account management and security overlap: accounts identify users and organise rights; security mechanisms check identity and enforce those rights.
11 | ALL NINE FUNCTIONS AT A GLANCE
| Function from the syllabus | Remember it through an example |
|---|---|
| Managing files | Save and organise a report |
| Handling interrupts | Respond to a device needing attention |
| Providing an interface | Use icons or enter commands |
| Managing peripherals and drivers | Communicate with a printer |
| Managing memory | Allocate RAM to running processes |
| Managing multitasking | Schedule processor time between tasks |
| Providing a platform for applications | Offer services for compatible programs |
| Providing system security | Check identity and enforce permissions |
| Managing user accounts | Maintain users, settings and access rights |
Develop your answer: “The OS manages memory” names a function. “The OS allocates RAM to each running process and tracks its use” describes what it does. “It protects memory areas, reducing the risk of one process overwriting another’s data” adds an explanation.
12 | COMMON MISTAKES
- The OS is just the desktop: the visible interface is only one of its functions.
- The OS is the CPU: software manages resources; hardware executes instructions.
- Multitasking always means simultaneous execution on one core: one core can switch between tasks.
- Virtual memory adds physical RAM: secondary storage provides backing space.
- A driver is a physical device: it is software for communication.
- Handling an interrupt closes the application: its state can be preserved for resumption.
- A successful login permits every action: permissions still restrict access.