Services of an Operating System
An Operating System (OS) provides essential services that allow users and application programs to use computer hardware efficiently. It acts as an intermediary between users, applications, and hardware by managing resources and coordinating the activities of the computer system.
The main services of an operating system include hardware management, user interface, process management, memory management, device management, file management, security management, and network management.
1. Hardware Management
Hardware management is the service through which the operating system controls and coordinates the computer's hardware resources.
The OS allocates resources to programs and devices and helps ensure that hardware components operate together efficiently.
Main functions
- Resource allocation: Assigns CPU time, memory, and other resources to programs as required.
- Hardware coordination: Coordinates the operation of connected hardware components.
- Resource utilisation: Helps programs use available hardware efficiently.
- Input/output coordination: Coordinates data transfers involving input and output devices.
When a user opens a web browser, the operating system allocates CPU time and memory to the browser and coordinates its interaction with storage and display devices.
2. User Interface
A user interface allows users to communicate with and control a computer system.
The operating system accepts user commands and provides feedback, making it possible to use the computer without directly controlling its electronic components.
Types of user interfaces
Graphical User Interface (GUI)
A GUI allows users to interact with a computer through graphical elements such as windows, icons, menus, buttons, and pointers.
Example: Windows DesktopA user can open a folder by double-clicking its icon or select an application from the Start menu.
Command-Line Interface (CLI)
A CLI allows users to interact with the computer by entering text-based commands.
Example: Command PromptA user can enter commands in Windows Command Prompt or a Linux terminal to list files, create folders, and perform other operations.
3. Process Management
Process management involves managing the processes that run in a computer system.
A process is a program in execution. The operating system creates and manages processes, schedules their execution, allocates CPU time, and terminates them when necessary.
Main functions
- Process creation: Starts a new process when an application or task is launched.
- Process scheduling: Determines which process receives CPU time and when.
- Process termination: Ends processes when they finish or are terminated.
- CPU allocation: Shares processor time among competing processes.
- Multitasking support: Coordinates multiple active processes.
A user listens to music while browsing the internet and editing a document. The operating system schedules the applications' processes so that they can make progress without requiring the user to close one application before opening another.
4. Memory Management
Memory management is the service through which the operating system manages main memory (RAM).
Programs need memory to store instructions and data while they execute. The OS allocates memory to processes, tracks its use, and releases memory when it is no longer required.
Main functions
- Memory allocation: Assigns memory to programs and processes.
- Memory deallocation: Releases memory when it is no longer needed.
- Memory tracking: Keeps track of which parts of memory are in use.
- Memory protection: Helps prevent processes from accessing memory they are not authorised to use.
- Virtual memory management: Uses storage space to support memory requirements when appropriate.
When a user opens a game, a browser, and a document editor, the OS manages their memory requirements. If available RAM becomes limited, the OS may use virtual memory mechanisms to support continued operation, although performance can decrease.
5. Device Management
Device management involves controlling and coordinating input and output devices connected to a computer.
The operating system communicates with devices through suitable device drivers and manages requests to use them.
Main functions
- Controls devices such as keyboards, mice, printers, scanners, and monitors.
- Uses device drivers to communicate with particular hardware devices.
- Coordinates input and output operations.
- Manages access to devices shared by multiple applications.
- Helps applications use hardware without needing to know every low-level hardware detail.
When a user selects Print, the application sends a print request. The operating system and printer driver help communicate the request to the printer and coordinate the printing operation.
6. File Management
File management is the service through which the operating system organises and manages files and directories on storage devices.
A file stores data or information, while a directory or folder provides a way to organise files and other folders.
Main functions
- Creating files and folders: Allows users and applications to store information.
- Deleting files: Removes files that are no longer needed.
- Copying and moving: Transfers files between locations.
- Renaming: Changes file or folder names.
- Searching: Helps locate stored information.
- Storage organisation: Maintains information about file locations and storage space.
- Access control: Applies permissions where supported.
A student creates a folder named ICT, saves a document inside it, renames the document, and later searches for the file. These operations are supported by the operating system's file management services.
7. Security Management
Security management protects the computer system and its data against unauthorised access and misuse.
The operating system provides mechanisms to identify users, control their permissions, and protect system resources.
Main functions
- User authentication: Checks a user's identity, for example through a password.
- Access control: Determines which files and resources a user can access.
- Permission management: Controls what users are allowed to do.
- System protection: Helps prevent unauthorised changes to important system resources.
- Security support: May provide firewall and other security features, depending on the operating system and its configuration.
On a shared computer, different users may have separate accounts. A standard user may be allowed to open personal documents but may not have permission to install system-wide software.
Security also depends on correct configuration, updates, safe user behaviour, and additional security tools where necessary.
8. Network Management
Network management involves managing network connections and supporting communication between computers and other devices.
The operating system provides network services that allow applications and users to communicate over local networks and the internet.
Main functions
- Network connectivity: Supports connections through technologies such as Ethernet and Wi-Fi.
- Data communication: Provides mechanisms for sending and receiving network data.
- Resource sharing: Allows access to shared resources, such as network printers and shared folders, when configured.
- Network configuration: Supports settings such as IP addresses and network connection options.
- Communication support: Provides network capabilities used by browsers, email applications, and other software.
Several computers connected to the same local network may send print requests to a shared printer. The operating system's networking and device services help the computers communicate with the printer.
How Operating System Services Work Together
Operating system services cooperate to complete everyday computer tasks.
Example: Opening and Printing a Document- User interface: The user opens a document using a graphical interface.
- File management: The OS locates and reads the document from storage.
- Process management: The document editor runs as a process.
- Memory management: The OS allocates RAM to the editor and its data.
- Hardware management: The OS coordinates the resources needed by the application.
- Device management: The OS communicates with the printer through an appropriate driver.
- Security management: User permissions determine whether the document and printer can be accessed.
- Network management: If the printer is on a network, network services help transfer the print request.
This example demonstrates that multiple operating system services can contribute to a single user activity.
Exam-Focused Points
Key Idea 1: The operating system manages hardware resources and provides services that allow application software to run.
Key Idea 2: Process management deals with executing programs, while memory management deals with allocating and tracking RAM.
Key Idea 3: Device management controls hardware devices, file management organises stored data, security management controls access, and network management supports communication.
Important Differences
| Service | Main responsibility |
|---|---|
| Hardware management | Coordinates hardware resources |
| User interface | Enables user interaction |
| Process management | Manages running processes |
| Memory management | Allocates and tracks RAM |
| Device management | Coordinates input/output devices |
| File management | Organises files and folders |
| Security management | Protects resources and controls access |
| Network management | Supports network communication |
Summary
An operating system provides a collection of services that help a computer function correctly and efficiently. These services coordinate hardware, execute programs, manage memory and files, control devices, provide user interaction, protect resources, and support network communication.
Understanding the purpose of each service helps students explain how an operating system makes computer systems easier, safer, and more efficient to use.