←Back to Subject
Notes
Notes
Study material and explanations
Diagrams
Diagrams
Visualize concepts easily
Mnemonics
Mnemonics
Tricks to remember faster
One Night Prep
One Night Prep
Short and focused revision
Revision
Revision
Quick summary and key points
Important Questions
Important Questions
Practice most relevant questions
Revision

Operating System · Unit 1 Revision

Quick summary and key points for Unit 1

What is Operating System? History, Evolution, Basic Functions & Resource Abstraction

Overview: When you save a letter, the editor asks the operating system to write a file.

What is an Operating System (OS)?

  • An Operating System (OS) is the most important system software that acts as an intermediary (bridge) between the Computer User…
    • The Hardware (CPU, RAM, Disk) is the kitchen, rooms, and electricity.
    • The Users & Apps are the hotel guests asking for food and room service.
    • The Operating System is the Hotel Manager—guests never go into the kitchen to cook for themselves; they tell the Manager what…
  • End Users Students, Programmers, Gamers interacting with the system
  • Application Programs & Utilities Web Browsers, MS Office, Compilers, Media Players, Games
  • Operating System (Kernel + Shell) Windows, Linux, macOS, Android — Controls & coordinates hardware
  • Two Primary Goals of an Operating System: Convenience (User View): Make the computer system easy and intuitive for humans to use (especially in PCs and smartphones).

View diagram · Figure 1.1: Layered View of a Computer System Showing the Role of OS

History and Evolution of Operating Systems

  • Operating systems evolved alongside computer hardware across four major generations:
  • 1. First Generation (1945–1955): Vacuum Tubes & Plugboards (No OS): Computers like ENIAC were massive room-sized calculators built with glowing vacuum tubes.
  • No Operating System existed! Programmers had to manually wire electrical plugboards and enter raw binary machine code (0s and 1s) one program at a…
  • 2. Second Generation (1955–1965): Transistors & Batch Systems: The invention of transistors made computers more reliable, known as Mainframes.
  • Programmers wrote programs on paper Punched Cards (in FORTRAN or Assembly).
  • Simple Batch Operating Systems (like IBM’s FMS and IBSYS) were invented: an operator collected similar jobs into a batch on magnetic tape, and a small…
  • 3. Third Generation (1965–1980): Integrated Circuits (ICs) & Multiprogramming: InBatch systems, whenever a job waited for slow I/O (reading a tape), the expensive CPU sat idle 80% of the time!
  • Third-generation systems (like IBM System/360) introduced Multiprogramming (keeping multiple jobs in RAM at once so the CPU switches to…

View diagram · Figure 1.2: Evolution of Operating Systems Across Four Generations

Basic Functions of an Operating System

  • What does an Operating System actually do behind the scenes?
  • 2. Memory Management Allocates and deallocates RAM frames to programs; manages Virtual Memory
  • 3. File Management Organizes data into files and directories; controls read/write permissions
  • 5. Secondary Storage Mgmt Manages free disk blocks, storage allocation, and Disk Scheduling
  • 6. Security & Protection Protects user data via passwords, authentication, and memory isolation
  • Process Management (CPU Management):
  • Main Memory (RAM) Management:
  • File System Management:

View diagram · Figure 1.3: Core Functions of an Operating System

Resource Abstraction in Operating Systems

  • What is Resource Abstraction?: Resource Abstraction is the process by which the Operating System **hides the complex, messy, hardware-specific details of…
  • Why is Resource Abstraction Needed?
  • Imagine if a programmer writing MS Word had to write code to control the exact stepper-motor voltage and magnetic head sector of 500…
  • Hard Disk Tracks, Sectors & Platter Cylinders: Abstracted into simple Files and Folders (open("notes.txt"), read(), write()).
  • Single Physical CPU Core: Abstracted into multiple independent Processes & Threads running concurrently.
  • Limited Physical RAM Chips + Disk Swap: Abstracted into a huge, contiguous Virtual Address Space for each program.
  • Display Adapter Graphics Registers: Abstracted into Windows, Canvases, Fonts, and Icons.
  • Network Card (NIC) Electrical Signals: Abstracted into simple Network Sockets (send(), receive()).

OS Structure (Kernel vs Shell) & System Calls

  • Kernel: The core heart of the Operating System that stays in main memory (RAM) 100% of the time from boot-up until shutdown.
  • Shell: The outer layer of the OS that wraps around the Kernel and interacts with the user (via CLI commands or GUI clicks).
  • System Calls: How does a normal user program (running in restricted User Mode) ask the Kernel to perform a hardware operation like…

Types of Operating Systems: Batch, Multiprogramming, Multiprocessing & Time-Sharing

Overview: Batch processing suits fee reports that can run overnight.

Overview of Operating System Types

  • Operating systems are classified based on how they manage the CPU, how many users they support simultaneously, and how quickly they respond to…
  • Batch Operating System
  • Multiprogramming Operating System
  • Multiprocessing Operating System
  • Time-Sharing (Multitasking) Operating System

Batch Operating System

  • In a Batch Operating System (popular in 1950s–60s mainframes), the user does not interact directly with the computer while their program…
  • How It Works: Each user prepares their job (Program + Input Data + Control Instructions) offline and hands it over to a human Computer Operator.
  • To avoid wasting time loading and unloading compilers repeatedly, the Operator groups jobs with similar requirements (e.g., all FORTRAN…
  • The Batch OS executes jobs in the batch one after another sequentially without any human intervention.
  • Advantages: Eliminates idle setup time between consecutive jobs.
  • Multiple users can share an expensive mainframe computer.
  • Disadvantages: CPU Starvation / Idle Time: Whenever the current job waits for slow I/O (printer or tape), the CPU sits completely idle!
  • Zero Interactive Debugging: If there is a small syntax error on line 5, the user only finds out the next day when the printed output is returned.

View diagram · Figure 1.4: How a Batch Operating System Works

Multiprogramming Operating System

  • Why was Multiprogramming invented? In a Batch system, a single job cannot keep both the CPU and I/O devices busy at all times.
  • Operating System (Kernel) Manages job switching
  • Waiting for Disk I/O Paused for I/O → CPU immediately switches to Job 2!
  • Currently Executing on CPU Keeps CPU 100% busy while Job 1 does I/O
  • Ready in RAM Will get CPU if Job 2 also requests I/O
  • How It Works: The OS picks Job 1 from RAM and starts executing it on the CPU.
  • As soon as Job 1 needs to wait for an I/O operation (like reading a file from disk), the OS does NOT wait—it immediately switches…
  • When Job 2 needs I/O, the CPU switches to Job 3, and so on.

View diagram · Figure 1.5: Memory Layout & CPU Switching in a Multiprogramming OS

Time-Sharing (Multitasking) Operating System

  • A Time-Sharing Operating System is a logical extension of Multiprogramming.
  • In normal Multiprogramming, the CPU only switches from Job 1 to Job 2 when Job 1 voluntarily asks for I/O.
  • In a Time-Sharing OS, the CPU switches between multiple running jobs so rapidly (every few milliseconds) using a fixed time slice…
  • Key Features of Time-Sharing OS: Interactive Computing: Users interact directly with their running program via keyboard/mouse and get an immediate response.
  • Time Slice / Quantum: Each process gets a small fixed burst of CPU time (e.g., 10 ms to 100 ms).
  • Core Goal of Time-Sharing: Minimize Response Time for interactive users.
  • Examples: UNIX, Linux, Windows, macOS.

Multiprocessing Operating System (Parallel Systems)

  • While Multiprogramming and Time-Sharing use a single CPU switching rapidly between tasks, a Multiprocessing Operating System uses **two…
  • 1. Asymmetric Multiprocessing (AMP) Follows a Master-Slave relationship
  • 2. Symmetric Multiprocessing (SMP) All CPUs are Equal Peers (No Master-Slave)
  • 3 Major Advantages of Multiprocessing Systems: Increased Throughput: With N processors working truly in parallel at the exact same instant, more work gets done in less time.
  • Economy of Scale: Cheaper than buying N separate computers because all CPUs share the same power supply, RAM, and hard disks.
  • Increased Reliability (Graceful Degradation / Fault Tolerance): If one processor fails in a 4-CPU system, the system does not crash—the remaining 3 CPUs take over its work and run at…

View diagram · Figure 1.6: Two Types of Multiprocessing Systems

Master Comparison: Multiprogramming vs Time-Sharing vs Multiprocessing

  • This comparison table is a must-write for 8-mark questions in DAVV BCA exams!
  • 1. Number of CPUs: 1 CPU (Single processor).
  • 2. Primary Objective: Maximize CPU Utilization (keep CPU busy when I/O occurs).
  • 3. When Does CPU Switch?: Switches only when the current process waits for I/O (Non-preemptive).
  • 4. Execution Type: Concurrent (Interleaved).

Distributed OS, Real-Time OS (RTOS) & OS for PCs, Workstations and Handheld Devices

Overview: A distributed OS coordinates several machines so their resources can appear as one system.

Distributed Operating System (Loosely Coupled System)

  • A Distributed Operating System manages a collection of physically separate, independent computers (nodes) connected via a high-speed…
  • Why is it called a “Loosely Coupled System”? Because unlike a Multiprocessing system (where all CPUs share the same RAM and clock), each node in a Distributed System has…
  • Key Features & Advantages of a Distributed OS: Transparency (Single-System Image): When a user opens a file or runs a program, they do not need to know which computer on the network stores that file or…
  • Resource Sharing: Computers at different locations can share expensive printers, databases, and storage clusters.
  • Computation Speedup (Load Sharing): If Node 1 is overloaded with jobs while Node 2 is idle, the Distributed OS automatically migrates jobs from Node 1 to Node 2.
  • High Reliability & Fault Tolerance: If one computer node crashes, the rest of the distributed network continues operating without interruption.
  • Examples: Amoeba, LOCUS, Sprite, Google Borg / Kubernetes cluster systems.

View diagram · Figure 1.7: Architecture of a Distributed Operating System

Real-Time Operating System (RTOS)

  • A Real-Time Operating System (RTOS) is a special-purpose OS designed for mission-critical environments where data must be processed and…
  • Two Types of Real-Time Operating Systems: Hard RTOS vs Soft RTOS: A hard real-time system treats a missed deadline as a failure.
  • 1. Hard Real-Time OS (Zero Tolerance) Missing even a single deadline is a total catastrophic system failure (can cause loss of life or hardware destruction)
  • 2. Soft Real-Time OS (Best Effort) Meeting deadlines is important, but missing an occasional deadline only causes a slight temporary drop in quality (not fatal)
  • 1. Deadline Strictness: 100% Strict: Deadlines must never be missed under any circumstance.
  • 2. Consequence of Delay: Catastrophic: Leads to loss of human life, explosion, or equipment crash.
  • 3. Response Time: In microseconds (μs) to milliseconds (ms).
  • 4. Examples of OS: VxWorks, QNX, FreeRTOS, RTLinux.

View diagram · Figure 1.8: Hard Real-Time OS vs Soft Real-Time OS

Operating Systems for Personal Computers, Workstations, and Hand-held Devices

  • Your DAVV Unit 1 syllabus specifically asks about how Operating Systems are tailored for three hardware categories: **Personal Computers…
  • 1. Operating Systems for Personal Computers (Desktops & Laptops): Design Goal: Built for a single user to maximize user convenience, responsiveness, and ease of use rather than raw multi-user CPU…
  • Key Characteristics:
  • Rich GUI (Graphical User Interface) with desktop icons, windows, and multitasking.
  • Plug-and-Play support for thousands of consumer peripherals (printers, webcams, gamepads, Wi-Fi).
  • Strong support for office productivity, web browsing, multimedia, and gaming.
  • Examples: Microsoft Windows (Windows 10/11), Apple macOS, Ubuntu / Mint Linux.
  • 2. Operating Systems for Workstations: What is a Workstation? A high-end technical computer (far more powerful than a regular home PC) used by **engineers, scientists, 3D animators, CAD…

Applications of OS in Real World & Prevalent Operating Systems

Overview: A phone and a lab desktop both schedule tasks and protect memory.

Applications of Various Operating Systems in the Real World

  • Different industries require completely different types of operating systems depending on whether they prioritize **speed, security, 24×7…
  • 1. Banking & Stock Markets Mainframe & UNIX/Linux OS handle millions of UPI/ATM transactions per second with 99.999% uptime
  • 2. Healthcare & Medical Hard RTOS runs ICU Ventilators, Patient Monitors, MRI Scanners & Heart Pacemakers
  • 3. Aviation, Railways & Space RTOS & Distributed OS power Aircraft Autopilot, ISRO Satellites & IRCTC Ticket Booking
  • 4. Cloud & Web Servers Over 90% of cloud servers (AWS, Google, Netflix) run on Enterprise Linux OS
  • 5. Education, Office & Gaming Desktop OS (Windows & macOS) power colleges, video editing studios, and PC gaming
  • 6. Smartphones & Smart TVs Handheld & Embedded OS (Android, iOS, Tizen) power billions of phones, watches & cars

View diagram · Figure 1.9: Real-World Applications of Various Operating Systems

Prevalent Operating Systems (Detailed Overview)

  • Your DAVV BCA Unit 1 syllabus explicitly lists 7 prevalent operating systems: **Windows, UNIX/Linux, Android, macOS, BlackBerry OS, Symbian,…
  • 1. Microsoft Windows: Developer: Microsoft Corporation (founded by Bill Gates and Paul Allen; first GUI version launched in 1985, evolved through…
  • Market Share: The world’s most popular Desktop/PC Operating System (over 70% global desktop share).
  • Key Features:
  • User-Friendly GUI: Famous for its Start Menu, Taskbar, File Explorer, and Window management.
  • Hardware & Software Compatibility: Supports almost every printer, graphics card, and peripheral via Plug-and-Play, and runs the largest library of PC software…
  • File System & Security: Uses the NTFS (New Technology File System) with BitLocker encryption, Windows Defender, and User Account Control (UAC).
  • A. UNIX: Developer: Developed in 1969 by Ken Thompson, Dennis Ritchie, and their team at AT&T Bell Labs (written in the C…

Quick Comparison Summary of Prevalent Operating Systems

  • 1. Windows: Microsoft
  • 2. UNIX / Linux: Bell Labs / Linus Torvalds
  • 3. Android: Google (OHA)
  • 4. macOS: Apple Inc.
  • 5. BlackBerry OS: RIM (BlackBerry)
  • 6. Symbian OS: Symbian Ltd.