Operating System Functions

The Operating System (OS) is the core system software suite that controls the execution of all programs and manages computer hardware resources. Without an operating system, a computer cannot function or interact with users.


Learning Objectives

  • Identify and explain the core functions of an operating system.
  • Describe how the OS performs memory management, multitasking, and file management.
  • Compare Graphical User Interfaces (GUI) and Command Line Interfaces (CLI).
  • Explain the purpose and operation of device drivers in peripheral management.

The Core Functions of an Operating System

An operating system manages a computer through seven primary responsibilities:

+-------------------------------------------------------------+
|                      OPERATING SYSTEM                       |
+-------------------------------------------------------------+
| 1. User Interface         | GUI (WIMP) vs CLI               |
| 2. Memory Management      | Allocates RAM & Virtual Memory  |
| 3. Multitasking           | CPU Scheduling & Time Slicing   |
| 4. Device Management      | Device Drivers & I/O Buffering  |
| 5. File Management        | Directories, Permissions & FAT  |
| 6. Security & Accounts    | Authentication & Access Rights  |
| 7. Interrupt Handling     | Prioritizing Hardware/Software  |
+-------------------------------------------------------------+

1. Providing a User Interface

The OS provides an environment that allows human users to communicate with computer hardware:

Graphical User Interface (GUI)

  • Operates using the WIMP paradigm:
  • Windows: Separate visual application containers on screen.
  • Icons: Small visual pictures representing files, folders, or programs.
  • Menus: Lists of selectable options and commands.
  • Pointers: On-screen cursor controlled by mouse, trackpad, or touchscreen.
  • Advantages: Intuitive, easy to learn for novices; no syntax memorization required.
  • Disadvantages: Demands significant CPU processing, GPU rendering, and RAM.

Command Line Interface (CLI)

  • The user types text commands with exact arguments into a terminal prompt.
  • Advantages: Extremely lightweight; consumes negligible RAM and CPU; enables powerful automated scripting.
  • Disadvantages: Steep learning curve; users must memorize exact syntax; mistyped commands can lead to unintended file deletion.

2. Memory Management & Protection

Computers often run dozens of background and foreground processes simultaneously.

  • Allocation: The OS allocates specific regions of primary RAM to each running program when launched.
  • Deallocation: When a program terminates, the OS reclaims its memory space for other programs.
  • Memory Protection: The OS enforces strict hardware boundaries preventing one application from accessing, reading, or overwriting memory belonging to another process or the OS kernel. If a program attempts to access an unallocated address, the OS halts it with an access violation error.
  • Virtual Memory: Manages paging to secondary storage when physical RAM is exhausted.

3. Multitasking & Processor Management

A computer may have hundreds of active processes running, but single CPU cores can only execute one instruction at a time.

  • CPU Scheduling: The OS scheduler rapidly switches the CPU between active processes, allocating each program a tiny fraction of a second called a time slice (quantum).
  • Because these switches occur hundreds or thousands of times per second, users perceive all applications running concurrently (preemptive multitasking).

4. Peripheral & Device Management

  • Device Drivers: The OS communicates with hardware peripherals (printers, graphics cards, sound chips) through device drivers that translate standardized OS I/O calls into proprietary electronic signals.
  • Buffering & Spooling: Temporary memory buffers prevent fast CPUs from being held up by slow mechanical hardware:
  • Example (Print Spooling): Documents sent to a printer are written into a temporary queue on disk/RAM (spooler), allowing the word processor to resume immediately while the printer slowly prints pages at its own pace.

5. File Management

  • Organizes secondary storage files into a logical hierarchical directory structure (folders and subfolders).
  • Tracks physical disk sector allocation (e.g. NTFS, FAT32, APFS).
  • Enforces file access permissions (read, write, execute permissions for individual users).

6. Security and User Accounts

  • Enforces user authentication via passwords, PINs, or biometrics.
  • Manages separate user profile environments and privileges (Administrator vs Standard User).
  • Maintains system audit logs recording login attempts and critical system changes.

Written practice and self-review

Operating systems manage complex hardware resources and facilitate human interaction.

  1. Describe how the operating system provides memory management when multiple applications run concurrently, and explain why memory protection is necessary.
  2. Compare a Graphical User Interface (GUI) with a Command Line Interface (CLI) in terms of:
  • Ease of use for novice users.
  • System resource consumption (RAM and CPU overhead).

Write an explanation before checking the theory. Check that each claim answers the question, uses the correct concept and explains why it applies. Discuss uncertain points with a teacher. The structured exercise below checks specific facts; it does not automatically mark this explanation.

AI Socratic Tutor

All-Access
Sign in or create an account. AI Tutor is an All-Access benefit.
Sign Up

Need guidance? Ask a question or use the hint below.

AI Socratic Tutor is an All-Access Benefit

Unlock step-by-step Socratic hints, algorithm trace table walkthroughs, and error diagnostics for every Cambridge exercise.

You're chatting with an AI tutor, not a person. AI can make mistakes, so double-check its answers.

Exam-Style Question: Identifying Operating System Concepts

+35 XP

Complete each statement regarding operating system functions:

  1. A Graphical User Interface characterized by Windows, Icons, Menus, and Pointers is commonly known as a [Space 1] interface.
  2. A specialized software program that allows the OS to communicate with a specific model of printer or graphics card is a [Space 2].
  3. The OS component that allocates CPU execution time slices across active processes to achieve multitasking is process [Space 3].
Word Bank / Available Cards (Drag into spaces or tap to place)

All-Access Required

Interactive exercises for Module 2 and beyond require an active plan.