Thursday, April 16, 2026

UNIT 5 – OPERATING SYSTEMS (TEACHER EXPLANATION GUIDE)

🔷 5.1 WHAT IS AN OPERATING SYSTEM?

📘 Definition

An Operating System (OS) is system software that:
👉 Acts as an interface between user and hardware
👉 Manages all computer resources


ðŸŽŊ Simple Explanation for Students

“OS is like a manager of a computer.”


🧠 Real-Life Analogy

  • Computer = Restaurant
  • OS = Manager
  • CPU = Chef
  • Users = Customers

👉 The manager (OS) decides:

  • Who gets served first
  • What resources to use

ðŸ§Đ Main Functions of OS

1. Process Management

Controls running programs

👉 Example:
Opening:

  • Chrome
  • Word
  • Music player

OS decides which runs first


2. Memory Management

Controls RAM usage

👉 Example:

  • 4GB RAM
  • Chrome uses 2GB
  • Word uses 1GB

OS allocates memory properly


3. File Management

Handles files & folders

👉 Example:
Saving a file in:

Documents > ICT > Notes.docx

4. Device Management

Controls hardware

👉 Example:

  • Printer
  • Keyboard
  • USB

Uses device drivers


5. Security Management

Protects system

👉 Example:

  • Password login
  • Fingerprint

🔷 Types of Operating Systems

1. Batch OS

  • No interaction
    👉 Example:
    Payroll system

2. Time-Sharing OS

  • Multiple users at same time

👉 Example:
School computer lab


3. Real-Time OS

  • Immediate response

👉 Example:
Air traffic control


4. Distributed OS

  • Multiple computers act as one

5. Embedded OS

  • Inside devices

👉 Example:
Washing machine, ATM


🔷 5.2 PROCESS MANAGEMENT


📘 Definition

A process = a program in execution

👉 Example:

  • Opening MS Word → becomes a process

🧠 Process vs Program

ProgramProcess
Stored fileRunning
PassiveActive

🔄 Process States

1. New

Process is created

2. Ready

Waiting for CPU

3. Running

Currently executing

4. Waiting (Blocked)

Waiting for input

👉 Example:
Waiting for file to open

5. Terminated

Finished execution


ðŸŽŊ Teaching Analogy (VERY USEFUL)

👉 Students in a classroom:

  • New → Student enters class
  • Ready → Waiting for teacher
  • Running → Answering question
  • Waiting → Thinking / stuck
  • Terminated → Finished

ðŸ§Ū CPU Scheduling

1. FCFS (First Come First Serve)

👉 Like queue in bank


2. SJF (Shortest Job First)

👉 Short tasks first

Example:

  • Print 1 page vs 100 pages

3. Round Robin

👉 Each process gets equal time

👉 Like teacher giving each student chance


🔄 Context Switching

Switching CPU between processes

👉 Example:
Switching between:

  • Chrome → Word → YouTube

🔷 5.3 MEMORY MANAGEMENT


📘 Definition

Managing main memory (RAM) efficiently


🧠 Key Concepts

Primary vs Secondary Memory

PrimarySecondary
RAMHard disk
FastSlow
TemporaryPermanent

🔷 Memory Allocation

1. Fixed Partition

RAM divided into fixed blocks

👉 Problem: Wastage


2. Dynamic Partition

Memory allocated as needed

👉 Better efficiency


🔷 Paging

📘 Definition

Memory divided into:

  • Pages (logical)
  • Frames (physical)

🧠 Simple Example

Think of:

  • Book = program
  • Pages = divided parts

🔷 Virtual Memory

Using disk as extra RAM

👉 Example:
When RAM is full → uses hard disk


🔷 Fragmentation

1. Internal Fragmentation

Unused space inside block

2. External Fragmentation

Free space scattered


🔷 5.4 FILE MANAGEMENT


📘 Definition

OS manages files and directories


🧠 File Operations

  • Create
  • Read
  • Write
  • Delete

📂 File Organization

1. Sequential Access

Read one by one

👉 Example:
Reading a book


2. Direct Access

Jump to location

👉 Example:
Watching a specific video time


📁 Directory Structure

👉 Example:

C:
└── Users
└── Student
└── ICT
└── Notes.txt

🔷 5.5 DEVICE MANAGEMENT


📘 Definition

Controls hardware devices


🔌 Device Drivers

Software that connects OS to hardware

👉 Example:
Printer driver


🔄 Interrupts

📘 Definition

Signal to CPU

👉 Example:

  • Mouse click
  • Keyboard press

🧠 Simple Explanation

“Interrupt = asking CPU for attention”


🔷 5.6 SECURITY & PROTECTION


🔐 Authentication

Types:

  • Password
  • PIN
  • Fingerprint
  • Face ID

🔑 Access Control

Who can access what

👉 Example:

  • Admin vs Student

ðŸĶ  Malware Types

1. Virus

Needs user action

👉 Example:
Opening infected file


2. Worm

Spreads automatically


3. Trojan

Looks safe but harmful

👉 Example:
Fake software

No comments:

Post a Comment