CIE IGCSE | 4.1.2 Operating Systems

Lesson objective

Describe the role of an operating system and its basic functions, using examples of how it manages resources and supports users and applications.

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

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.

Two common ways to interact with an operating system
InterfaceHow it worksExample
Graphical user interface (GUI)Use visual controls such as windows, icons, menus and buttonsOpen a folder by selecting its icon
Command-line interface (CLI)Enter text commandsType 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.

A simplified scheduling example, not a fixed schedule for every OS
Illustrative time sliceTask using one core
1Word processor
2Music player
3Browser
4Word 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

Use a specific function and mechanism in an exam answer
Function from the syllabusRemember it through an example
Managing filesSave and organise a report
Handling interruptsRespond to a device needing attention
Providing an interfaceUse icons or enter commands
Managing peripherals and driversCommunicate with a printer
Managing memoryAllocate RAM to running processes
Managing multitaskingSchedule processor time between tasks
Providing a platform for applicationsOffer services for compatible programs
Providing system securityCheck identity and enforce permissions
Managing user accountsMaintain 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.

MATCH THE OPERATING-SYSTEM FUNCTION

Terminology

Terminology

Operating system

System software that manages resources and provides services for applications and users.

Resource

A component or capacity used by tasks, such as processor time, memory or a peripheral.

User interface

The means by which a user interacts with a computer system.

Graphical user interface (GUI)

An interface using visual controls such as windows, icons, menus and buttons.

Command-line interface (CLI)

An interface in which users enter text commands.

File management

Organising files and supporting operations such as saving, moving and deleting.

Memory management

Allocating, tracking, protecting and reclaiming memory used by processes.

Multitasking

Allowing multiple tasks to make progress over the same period through scheduling.

Process

A program in execution, with its associated state and resources.

Scheduling

Deciding which ready task receives processor time.

Peripheral

A connected device used for functions such as input, output or storage.

Device driver

Software enabling the OS to communicate with a device or device class.

Interrupt

A signal or event requesting processor attention.

Interrupt service routine (ISR)

A routine that handles a particular interrupt.

Application platform

The environment and services an OS provides for compatible applications.

Authentication

Checking a claimed identity.

Authorisation

Determining the access or actions a user is permitted.

User account

A user identity associated with settings and access rights.

Administrator

An account or user with broader privileges for managing a system.

Virtual memory

A memory-management technique using secondary storage as backing space for memory pages.

Questions

Questions

CHECK YOUR UNDERSTANDING

Select all correct choices. Each exact set earns one point.

1. Which are operating-system functions?
2. Which statements about interfaces are correct?
3. What does memory management involve?
4. Which statements about multitasking are correct?
5. Which statements about drivers are correct?
6. What can happen when an interrupt is handled?
7. Which security statements are correct?
8. Which describe a platform for applications?
9. Which are examples of user-account management?

EXPLAIN AND COMPARE

Write your answers before revealing each sample.

1. Describe two functions of an operating system when a student opens and saves a report.

2. Explain how a single-core computer can appear to play music and edit a document at the same time.

3. Describe the role of a device driver when printing.

4. Compare authentication and authorisation.

5. Explain why an operating system manages memory for separate processes.

6. Describe how an interrupt can be handled without losing the current task’s progress.

7. Explain why a school might give students standard accounts rather than administrator accounts.

APPLY IT | A BUSY SCHOOL COMPUTER

A student logs in, opens a word processor, plays music, saves a report and sends it to a shared printer. Identify at least five OS functions involved. Explain what each does in this scenario.

Reveal suggested answer

Accounts and security: identify the student and enforce rights. Application platform: provide services for the word processor and player. Memory: allocate space to processes. Multitasking: schedule processor time. Files: save the report. Peripherals and drivers: communicate with the printer and manage its job. Interface: provide controls for launching programs and selecting files. Interrupt handling: respond to relevant input and device events.

Flashcards

Flashcards

Click to flip. Select the ideas you need to revisit.

0 cards selected for revision.

    Selections are kept while this page is open.

    Workbook

    Workbook

    COMING SOON

    The workbook for 4.1.2 Operating Systems is coming soon. Complete the matching task and written questions in your exercise book.