Operating System – Introduction, Functions, Types and Examples

An Operating System, commonly called an OS, is system software that manages computer hardware and software resources and provides a platform for applications to run.

In simple words, the operating system acts as a middle layer between the user, applications, and computer hardware.

Examples of operating systems include:

  • Microsoft Windows
  • macOS
  • Linux
  • Android
  • iOS

Without an operating system, using a modern computer would be extremely difficult because applications would have to control hardware directly.

A simple relationship is:

User → Applications → Operating System → Hardware

What is an Operating System?

An operating system is the main system software responsible for controlling and managing the basic operations of a computer or digital device.

It manages important resources such as:

  • CPU
  • RAM
  • Storage
  • Input devices
  • Output devices
  • Files
  • Applications
  • Network connections
  • User accounts

For example, when you open Google Chrome, Chrome does not directly control every part of the computer.

Instead, the operating system helps Chrome access:

  • CPU processing power
  • RAM
  • Storage
  • Display
  • Keyboard
  • Mouse
  • Network connection

This allows applications to run without needing to control hardware individually.

Simple Example of an Operating System

Suppose you want to open a photo stored on your computer.

A simplified process is:

  1. You double-click the photo.
  2. The operating system receives your request.
  3. It finds the photo on the storage device.
  4. It loads the required data into RAM.
  5. The CPU processes the instructions.
  6. A photo application opens.
  7. The image is displayed on the monitor.

So, the operating system coordinates several hardware and software components to complete a simple task.

Why Do We Need an Operating System?

A computer contains many different hardware components.

For example:

  • CPU
  • RAM
  • SSD
  • Keyboard
  • Mouse
  • Monitor
  • Network card

Applications also need access to these resources.

If every application directly controlled every hardware device, the system would be extremely complicated.

The operating system simplifies this by managing resources centrally.

It allows applications to request services from the operating system instead of directly controlling hardware.

Main Role of an Operating System

The operating system performs several major roles.

These include:

  1. Managing the CPU
  2. Managing memory
  3. Managing files
  4. Managing storage
  5. Managing devices
  6. Managing applications
  7. Managing users
  8. Providing security
  9. Managing network connections
  10. Providing a user interface

Each of these topics can be studied separately in much greater detail.

How Does an Operating System Work?

The operating system starts when the computer boots.

After the computer’s firmware performs initial hardware checks, the operating system is loaded from storage into memory.

Once running, the OS controls and coordinates system resources.

A simplified startup flow is:

Power Button

↓

Firmware Starts

↓

Hardware Initialisation

↓

Bootloader Starts

↓

Operating System Loads

↓

Login Screen Appears

↓

User Starts Applications

After this, the operating system continues running in the background while the computer is being used.

Operating System as a Bridge

One of the easiest ways to understand an operating system is to think of it as a bridge.

For example:

User → Microsoft Word → Windows → Printer Driver → Printer

Here:

  • User gives the command.
  • Microsoft Word requests printing.
  • Windows manages the request.
  • Printer driver communicates with the printer.
  • Printer produces the output.

The operating system helps different parts of the system work together.

Main Functions of an Operating System

An operating system performs many important functions.

Process Management

A process is a program that is currently running.

For example, if you open:

  • Google Chrome
  • Microsoft Word
  • Spotify

the operating system manages all these running processes.

It decides how CPU time and other resources are shared.

Memory Management

The operating system manages RAM.

When applications run, they need memory.

The OS decides:

  • How much memory is assigned
  • Which application receives memory
  • When memory can be released
  • How different applications are kept separated

This helps prevent programs from interfering with each other.

File Management

The operating system helps organise files and folders.

It allows users to:

  • Create files
  • Save files
  • Rename files
  • Copy files
  • Move files
  • Delete files
  • Search files

For example:

Documents → College → Assignment.docx

The operating system manages where the file is stored and how it can be accessed.

Device Management

The operating system manages connected hardware devices.

Examples include:

  • Keyboard
  • Mouse
  • Printer
  • Monitor
  • USB drive
  • Graphics card
  • Network adapter

Device drivers help the operating system communicate with these devices.

Storage Management

The operating system manages storage devices such as:

  • HDD
  • SSD
  • USB drives

It helps manage:

  • Partitions
  • File systems
  • Drive letters
  • Available space
  • File locations

User Management

Modern operating systems can support multiple users.

Each user can have:

  • Username
  • Password
  • Personal files
  • Permissions
  • Settings

For example, a family computer may contain separate accounts for different people.

Security Management

Operating systems provide many security features.

These may include:

  • User authentication
  • Passwords
  • Permissions
  • File access controls
  • Firewall support
  • Encryption support
  • Secure boot
  • Updates

Security is one of the most important responsibilities of modern operating systems.

Application Management

The operating system provides the environment required for applications to run.

For example:

  • Microsoft Word runs on Windows or macOS.
  • Mobile applications run on Android or iOS.
  • Linux applications run on Linux-based systems.

The operating system provides services that applications can use.

Input and Output Management

The operating system manages communication with input and output devices.

Examples include:

Keyboard → Operating System → Application

and

Application → Operating System → Monitor

This allows applications to interact with devices more easily.

Network Management

Operating systems also provide networking features.

They help manage:

  • Wi-Fi
  • Ethernet
  • IP addresses
  • Network adapters
  • DNS settings
  • Internet connections

For example, when you connect your laptop to Wi-Fi, the operating system manages the connection.

User Interface

The operating system provides a way for users to interact with the computer.

Two common types are:

  • Graphical User Interface
  • Command-Line Interface

Graphical User Interface

A Graphical User Interface, or GUI, allows users to interact with a computer using visual elements.

Examples include:

  • Icons
  • Windows
  • Menus
  • Buttons
  • Mouse pointer

Windows and macOS are well-known graphical operating systems.

Command-Line Interface

A Command-Line Interface, or CLI, allows users to interact with the computer by typing commands.

Examples include:

  • Command Prompt
  • PowerShell
  • Linux terminal

For example:

dir

can display files and folders in Windows Command Prompt.

Types of Operating Systems

Operating systems can be classified in different ways.

Common types include:

  1. Desktop Operating Systems
  2. Mobile Operating Systems
  3. Server Operating Systems
  4. Real-Time Operating Systems
  5. Embedded Operating Systems
  6. Network Operating Systems
  7. Multi-User Operating Systems

These categories can overlap.

Desktop Operating Systems

Desktop operating systems are designed mainly for personal computers and laptops.

Examples include:

  • Windows
  • macOS
  • Linux distributions

They provide features such as:

  • Desktop interface
  • File management
  • Application support
  • Networking
  • Hardware management

Mobile Operating Systems

Mobile operating systems are designed for smartphones and tablets.

Examples include:

  • Android
  • iOS

They are optimised for:

  • Touchscreens
  • Mobile applications
  • Battery usage
  • Wireless communication
  • Sensors

Server Operating Systems

Server operating systems are designed to run services for other computers and users.

They may be used for:

  • Websites
  • Databases
  • File sharing
  • Email
  • Authentication
  • Cloud services

Examples include server versions and distributions of:

  • Windows
  • Linux
  • Unix-like systems

Real-Time Operating Systems

A Real-Time Operating System, or RTOS, is designed to respond to events within predictable time limits.

These systems are often used where timing is very important.

Examples of use cases include:

  • Industrial control systems
  • Robotics
  • Automotive systems
  • Medical equipment

Embedded Operating Systems

Embedded operating systems are designed for specialised devices.

Examples of devices include:

  • Smart TVs
  • Routers
  • Cameras
  • Home appliances
  • Industrial devices

They are usually designed for specific hardware and tasks.

Multi-User Operating Systems

A multi-user operating system allows multiple users to access system resources.

This is common in:

  • Servers
  • Mainframes
  • Enterprise systems

Each user can have separate accounts and permissions.

Single-User vs Multi-User Operating Systems

Single-User Operating SystemMulti-User Operating System
Mainly designed around one interactive user at a timeSupports multiple users
Common in personal devicesCommon in servers and enterprise systems
Focuses on individual useFocuses on shared resource access
Example: Personal computer environmentExample: Multi-user server environment

Desktop OS vs Mobile OS

Desktop Operating SystemMobile Operating System
Designed mainly for PCs and laptopsDesigned mainly for phones and tablets
Keyboard and mouse commonly usedTouchscreen commonly used
Usually supports desktop softwareUsually supports mobile apps
Examples: Windows, macOS, LinuxExamples: Android, iOS

Operating System vs Application Software

Operating SystemApplication Software
Manages computer resourcesHelps users perform specific tasks
System softwareApplication software
Starts during system bootUsually opened by the user
Provides platform for applicationsDepends on an operating system
Example: WindowsExample: Microsoft Word
Example: LinuxExample: Google Chrome

Operating System vs Firmware

Operating SystemFirmware
Manages the overall computer systemProvides low-level hardware control
Loaded during bootUsually stored in non-volatile memory
Supports applicationsHelps initialise or control hardware
Example: WindowsExample: UEFI
Example: LinuxExample: Router firmware

Operating System vs Kernel

The operating system and kernel are related but not exactly the same.

Operating SystemKernel
Complete system software environmentCore part of the operating system
Includes user interface and system toolsManages low-level system resources
Provides many servicesHandles CPU, memory and device operations
Example: Windows operating systemWindows kernel components
Example: Linux distributionLinux kernel

The kernel is the core component inside an operating system.

What is a Kernel?

The kernel helps manage important resources such as:

  • CPU
  • RAM
  • Processes
  • Devices
  • System calls

A simplified relationship is:

Application → Operating System → Kernel → Hardware

The kernel will be studied separately in greater detail.

What Happens When You Open an Application?

Suppose you open Google Chrome.

A simplified process is:

  1. You click the Chrome icon.
  2. The operating system receives the request.
  3. Chrome files are read from storage.
  4. Required information is loaded into RAM.
  5. The CPU executes Chrome instructions.
  6. The operating system manages hardware access.
  7. Chrome appears on the monitor.

This shows that applications rely heavily on the operating system.

What Happens When You Save a File?

Suppose you save a Word document.

The process may look like:

Microsoft Word → Operating System → File System → Storage Device

The operating system helps determine:

  • Where the file should be stored
  • How it is named
  • Which user can access it
  • How storage space is allocated

What Happens When You Connect a USB Drive?

When you connect a USB drive:

  1. Hardware detects the device.
  2. The operating system identifies it.
  3. The appropriate driver is used.
  4. The storage is made available to the user.
  5. You can access files through the file manager.

This process happens automatically on most modern systems.

Popular Operating Systems

Some of the most widely known operating systems include:

Microsoft Windows

Windows is commonly used on:

  • Desktop computers
  • Laptops
  • Business computers
  • Gaming PCs

It provides a graphical user interface and broad hardware and software compatibility.

macOS

macOS is Apple’s desktop operating system.

It is designed primarily for Mac computers.

Linux

Linux is used in many environments, including:

  • Desktop computers
  • Servers
  • Cloud systems
  • Cybersecurity environments
  • Embedded devices

Linux is available through different distributions.

Examples include:

  • Ubuntu
  • Debian
  • Fedora

Android

Android is a mobile operating system widely used on smartphones and tablets.

iOS

iOS is Apple’s operating system for iPhones.

Operating System and Hardware Resources

The operating system manages many hardware resources.

Hardware ResourceOperating System Role
CPUSchedules processes
RAMAllocates and manages memory
SSD/HDDManages files and storage
KeyboardReceives input
MonitorManages visual output
PrinterCommunicates through drivers
Network AdapterManages network connectivity

Operating System and Software Resources

The operating system also manages software resources.

Examples include:

  • Applications
  • Processes
  • Background services
  • Files
  • User accounts
  • Permissions

This allows many applications to work together on the same computer.

Operating System and Multitasking

Modern operating systems support multitasking.

Multitasking means managing multiple applications or processes during the same period.

For example, you can:

  • Listen to music
  • Browse the web
  • Download a file
  • Write a document

at the same time.

The operating system manages resources between these tasks.

Operating System and Security

Operating systems are a major part of computer security.

They provide security features such as:

  • User authentication
  • Permissions
  • Account separation
  • Firewall support
  • Encryption
  • Secure Boot
  • Security updates

If the operating system is compromised, an attacker may gain significant control over the computer.

This is why operating systems should be updated regularly.

Operating System Updates

Operating system developers release updates for reasons such as:

  • Security fixes
  • Bug fixes
  • Performance improvements
  • Hardware compatibility
  • New features

Security updates are especially important because they can fix known vulnerabilities.

32-Bit and 64-Bit Operating Systems

Operating systems can be designed for different CPU architectures.

Two common terms are:

  • 32-bit
  • 64-bit

Modern personal computers mostly use 64-bit operating systems.

A 64-bit operating system can support larger memory address spaces and modern processors.

Operating System Installation

An operating system must normally be installed on a storage device before the computer can be used normally.

A simplified installation process is:

  1. Boot from installation media.
  2. Select language and settings.
  3. Select storage drive.
  4. Create or select partitions.
  5. Copy operating system files.
  6. Configure system settings.
  7. Create user account.
  8. Restart the computer.
  9. Operating system starts.

Operating System Boot Process

A simplified boot process looks like:

Power On

↓

Firmware

↓

POST / Hardware Initialisation

↓

Bootloader

↓

Operating System Kernel

↓

System Services

↓

User Interface

↓

Login

This happens every time a computer starts.

Advantages of an Operating System

Operating systems provide many benefits.

Easy Computer Usage

They provide interfaces that make computers easier to use.

Hardware Management

They manage computer components and connected devices.

Application Support

They provide an environment for software applications.

Multitasking

They allow users to run multiple programs.

Security

They provide user accounts, permissions, and other security features.

File Management

They organise files and folders.

Networking

They provide network and internet connectivity.

Limitations of Operating Systems

Operating systems can also have limitations.

Security Vulnerabilities

Operating systems may contain bugs or security weaknesses.

Resource Usage

The operating system itself uses:

  • CPU
  • RAM
  • Storage

Compatibility Issues

Some applications or devices may only support certain operating systems.

Complexity

Modern operating systems are highly complex.

Updates

Updates may occasionally introduce compatibility or stability problems.

Common Operating System Problems

Common problems include:

  • Computer not booting
  • System freezing
  • Application crashes
  • Driver problems
  • Slow performance
  • Network problems
  • Corrupted system files
  • Update failures

These problems do not always mean the operating system itself is faulty, because hardware or application problems can produce similar symptoms.

Important Operating System Terms to Remember

Operating System: Main system software that manages a computer.

OS: Short form of Operating System.

Kernel: Core component of the operating system.

Process: A program that is currently running.

Memory Management: Managing RAM used by applications.

File Management: Organising files and folders.

Device Management: Managing hardware devices.

User Interface: Method used to interact with a computer.

GUI: Graphical User Interface.

CLI: Command-Line Interface.

Bootloader: Program that helps load the operating system.

Multitasking: Managing multiple tasks during the same period.

Driver: Software that helps the OS communicate with hardware.

Frequently Asked Questions About Operating Systems

What is an operating system?

An operating system is system software that manages hardware and software resources and provides an environment in which applications can run.

What are five examples of operating systems?

Five common examples are:

  1. Windows
  2. macOS
  3. Linux
  4. Android
  5. iOS

Is Windows an operating system?

Yes.

Microsoft Windows is an operating system used mainly on desktop and laptop computers.

Is Linux an operating system?

Linux commonly refers to a family of operating systems built around the Linux kernel.

Is Android an operating system?

Yes.

Android is a mobile operating system.

Is Google Chrome an operating system?

Google Chrome itself is a web browser and application software.

ChromeOS, however, is an operating system developed for Chromebook devices.

What is the main function of an operating system?

Its main function is to manage computer resources and provide services for users and applications.

What is the difference between operating system and system software?

Operating SystemSystem Software
One specific type of system softwareBroad category of software
Manages the overall computerIncludes OS, drivers, firmware and other system tools
Example: WindowsExample: Windows, drivers, utilities

What is the difference between operating system and application software?

Operating SystemApplication Software
Manages computer resourcesPerforms specific user tasks
System softwareApplication software
Example: WindowsExample: Microsoft Word
Starts with the computerUsually opened when needed

Can a computer work without an operating system?

A computer can perform limited firmware-level operations without a general-purpose operating system, but normal everyday computing generally requires an OS.

Conclusion

An Operating System is one of the most important components of a modern computer system.

It manages hardware resources such as:

  • CPU
  • RAM
  • Storage
  • Input devices
  • Output devices
  • Network devices

It also manages software resources such as:

  • Applications
  • Processes
  • Files
  • User accounts
  • Security permissions

A simple way to remember its position is:

User → Application → Operating System → Hardware

The operating system works as a bridge between applications and physical hardware.

Examples include:

  • Windows
  • macOS
  • Linux
  • Android
  • iOS

This chapter provides an overview of operating systems. In the next sections, important OS concepts can be studied separately in greater depth, including functions of an operating system, types of operating systems, kernel, process management, CPU scheduling, memory management, file systems, device management, boot process, user interfaces, and operating system security.

Continue Learning