Introduction

8 min read1,533 words

Introduction to Operating System

What is an Operating System?

An Operating System (OS) is system software that acts as an interface between the user/applications and computer hardware.

In simple words:

Operating System = Software that manages computer hardware and provides services to application programs.

For example, when you open Chrome and visit a website, Chrome doesn't directly control the CPU, RAM, keyboard, disk, or network card. The operating system manages these resources and provides Chrome with the services it needs.

Examples of operating systems:

  • Windows
  • Linux
  • macOS
  • Android
  • iOS

Basic OS Structure

The relationship can be understood like this:

+-----------------------------+ | USER | +-----------------------------+ ↓ +-----------------------------+ | APPLICATION SOFTWARE | | Chrome | VS Code | Games | +-----------------------------+ ↓ +-----------------------------+ | OPERATING SYSTEM | | Process Management | | Memory Management | | File Management | | Device Management | | Security | +-----------------------------+ ↓ +-----------------------------+ | HARDWARE | | CPU | RAM | Disk | Keyboard | | Mouse | Network | Display | +-----------------------------+

The OS is therefore positioned between applications/users and hardware.

Why Do We Need an Operating System?

Without an operating system, using a modern computer would be extremely difficult.

Imagine you want to save a file.

Without an OS, an application would need to directly understand:

  • how the storage device works
  • where free space exists
  • how data should be written
  • how the disk controller works
  • how permissions work
  • how the hardware communicates

The OS handles these complicated operations.

For example:

You → Click "Save" ↓ Application → Requests OS ↓ OS → Manages file system ↓ OS → Communicates with storage device ↓ Storage → Stores the data

Main Objectives of an Operating System

An operating system has several important objectives.

1. Make the computer easy to use

The OS provides interfaces that allow users to interact with the computer.

Examples:

  • Graphical User Interface (GUI)
  • Command Line Interface (CLI)

For example:

GUI: Click → Folder → File CLI: $ mkdir project $ cd project

2. Manage Hardware Resources

The OS manages resources such as:

  • CPU
  • RAM
  • Storage
  • Keyboard
  • Mouse
  • Printer
  • Network devices
  • Display
  • USB devices

For example, if five applications want CPU time simultaneously, the OS decides which process gets CPU time and when.

3. Manage Programs

The OS loads programs into memory and manages their execution.

For example:

Chrome VS Code Terminal Music Player

All may run at the same time.

The OS manages their processes and allocates resources to them.

4. Manage Memory

The OS manages RAM.

Suppose your computer has:

RAM = 8 GB

Several applications may need memory:

OS → 2 GB Browser → 2 GB VS Code → 1.5 GB Terminal → 500 MB Other apps → 2 GB

The OS manages how memory is allocated and released.

This leads to topics such as:

  • Memory Management
  • Memory Allocation
  • Paging
  • Segmentation
  • Virtual Memory

5. Manage Files

The OS provides a way to create, read, modify, delete, and organize files.

For example:

Documents/ notes.txt assignment.pdf Projects/ program.cpp main.py

The OS manages:

  • Files
  • Directories
  • File permissions
  • File storage
  • File allocation

6. Manage Input and Output

The OS manages communication with input/output devices.

Examples:

Input: Keyboard Mouse Scanner Microphone Output: Monitor Printer Speaker

For example:

Keyboard ↓ Device Driver ↓ Operating System ↓ Application

7. Provide Security

Modern operating systems protect resources from unauthorized access.

Examples:

  • User accounts
  • Passwords
  • File permissions
  • Access control
  • Process isolation
  • Encryption support
  • Security policies

For example:

user1 → can read file user2 → cannot access file

Major Functions of an Operating System

The important functions are:

FunctionPurpose
Process ManagementManages running programs
Memory ManagementManages RAM
File ManagementManages files
Directory ManagementOrganizes files/folders
Device ManagementManages hardware devices
I/O ManagementHandles input/output
CPU SchedulingDecides which process gets CPU
Storage ManagementManages storage devices
SecurityProtects resources
NetworkingProvides network-related services
Error HandlingDetects and handles errors
User InterfaceProvides GUI/CLI

OS as a Resource Manager

One of the most important concepts in Operating Systems is:

The OS is a resource manager.

Computer resources are limited.

For example:

CPU → Limited RAM → Limited Disk → Limited Network → Limited I/O devices → Limited

The OS decides how these resources should be used.

Example:

OPERATING SYSTEM | +---------+---------+ ↓ ↓ ↓ CPU RAM Disk ↓ ↓ ↓ Process Memory Files

OS as an Extended Machine

Hardware is complicated.

The OS hides much of this complexity from applications.

For example, an application doesn't need to know the physical details of an SSD to open a file.

Instead:

Application ↓ open("data.txt") ↓ Operating System ↓ File System ↓ Storage Driver ↓ SSD

The OS provides a simpler abstraction over complicated hardware.

This is why an OS is also described as an extended machine or virtual machine abstraction.

Kernel

The kernel is the core part of an operating system.

It has privileged access to hardware and performs critical OS functions.

+----------------------+ | Applications | +----------------------+ ↓ +----------------------+ | System Calls | +----------------------+ ↓ +----------------------+ | Kernel | | | | Process Management | | Memory Management | | File System | | Device Management | | Networking | +----------------------+ ↓ +----------------------+ | Hardware | +----------------------+

For example, in Linux, the Linux kernel is responsible for core system operations.

The kernel is not the same thing as the entire operating system. The OS includes the kernel plus other system software, utilities, libraries, services, interfaces, and tools.

User Mode and Kernel Mode

Modern operating systems generally separate execution into different privilege levels.

Two important modes are:

User Mode

Normal applications run here.

Examples:

Chrome VS Code Games Text editors

They have restricted access to hardware.

Kernel Mode

The kernel runs here.

It has much greater privileges and can perform operations involving hardware and protected system resources.

Simplified view:

User Mode | | System Call ↓ Kernel Mode | ↓ Hardware

This separation helps improve security and stability.

Examples of Operating Systems

Desktop/Laptop

  • Windows
  • Linux
  • macOS

Mobile

  • Android
  • iOS

Servers

  • Linux distributions
  • Windows Server
  • Unix-based systems

Embedded Systems

Operating systems are also used in:

  • Routers
  • Smart TVs
  • IoT devices
  • Cars
  • Industrial controllers
  • Medical equipment

Operating System vs Application Software

These are different.

Operating SystemApplication
Manages computer resourcesPerforms specific user tasks
Controls hardware accessUses OS services
Runs core system functionsRuns on top of OS
Example: LinuxExample: Firefox
Example: WindowsExample: VS Code
Example: macOSExample: VLC

For example:

Windows ↑ VS Code ↑ You

VS Code uses services provided by Windows.

Real-Life Example

Suppose you open a video in VLC.

Several things happen:

You click video ↓ VLC requests the OS ↓ OS finds the file ↓ File system accesses storage ↓ OS reads data ↓ Data is loaded into RAM ↓ CPU processes instructions ↓ OS manages audio/video devices ↓ Video appears on screen

You simply clicked Play, but the OS coordinates many different components.

Key Characteristics of an Operating System

A good operating system should provide:

  • Efficiency — use resources efficiently
  • Reliability — operate correctly
  • Security — protect data and resources
  • Convenience — make the computer easy to use
  • Resource sharing — share CPU, memory, storage, etc.
  • Multitasking — allow multiple programs to run
  • Error handling — detect and handle errors
  • Scalability — support different workloads and hardware

Important Terms

OS

Operating System.

Kernel

Core component responsible for privileged system operations.

Process

A program that is currently executing.

System Call

A mechanism through which a user-level program requests a service from the OS kernel.

Resource

Something managed by the OS, such as CPU, RAM, storage, or devices.

File System

The mechanism used by an OS to organize and manage files on storage.

Device Driver

Software that allows the OS to communicate with a particular hardware device.

Exam Definition

An Operating System is system software that acts as an interface between the user and computer hardware and manages system resources such as CPU, memory, storage, files, and I/O devices while providing services to application programs.

In one line:

Operating System = Interface + Resource Manager + Service Provider + Hardware Manager

Keep learning. Keep building. Keep growing.

© 2026 Ugenz Academy