Winter Semester 2026–27 · VIT-AP · BACSE106 · Operating Systems · Dr. Krithika L.B

Session 1.1: Operating-system basics and history

What an operating system is, what it manages, how the hardware underneath works, and how seventy years of problems shaped the OS you use today.

Module 1 1.5 hours Theory CO1
← Before
Module 1 overview
Course home
You are here
1.1 Operating-system basics and history
Module 1 · Operating Systems and Structure
Next →
1.2 OS structure
Monolithic → modular

Learning objectives

By the end of this session you should be able to:

  • Define an operating system, the kernel, system programs and application programs.
  • Contrast the user view and the system view (resource allocator, control program) of an OS.
  • Describe how CPU, memory, device controllers and drivers cooperate in a modern computer.
  • Distinguish single-processor, multiprocessor, multicore and clustered architectures.
  • Trace the history of OSes — serial, batch, multiprogramming, time-sharing, PC, distributed, real-time, mobile — as a chain of problems and solutions.

Lecture notes

1. Why does a computer need an operating system?

A bare computer is a CPU that fetches instructions from memory, a few gigabytes of RAM, and a crowd of devices — disk, keyboard, display, network card — each with its own controller and its own peculiar protocol. Nobody wants to write a program that talks to a particular SSD controller just to save a file. The operating system (OS) is the software layer that sits between that hardware and the programs we actually want to run.

Definition

An operating system is a program that manages the computer's hardware, provides a basis for application programs, and acts as an intermediary between the user and the hardware. The one program running at all times on the computer is the kernel; everything else is either a system program (shipped with the OS, e.g. ls, the shell) or an application program.

Silberschatz describes a computer system as four components stacked on each other:

Users — people, other machines
Application programs — compilers, browsers, databases, games
System-call interface
Operating system — controls and coordinates use of the hardware
Hardware — CPU, memory, I/O devices

2. Two ways to look at an OS: the user view and the system view

What an OS should do depends on who is asking.

User view

The user wants convenience and performance. A laptop OS is tuned so one person gets an instant response; a phone OS adds touch and battery life; an embedded controller in a washing machine has almost no user view at all.

System view — resource allocator

The OS owns CPU time, memory, storage and devices, and must divide them efficiently and fairly when many requests conflict.

System view — control program

The OS supervises running programs to prevent errors and improper use — a buggy program must not crash the machine or read another user's files.

User view vs system view: convenience for people, efficient and safe use of hardware for the machine.
User view vs system view: convenience for people, efficient and safe use of hardware for the machine.

These two goals pull against each other — a perfectly fair scheduler may feel sluggish to the one person sitting at the keyboard, and strict protection costs some speed. Most of this course is about the mechanisms an OS uses to negotiate that tension.

3. What the OS manages

Process management

Create and delete processes, schedule them on CPUs, let them synchronize and communicate. (Modules 2–3)

Memory management

Track which parts of RAM are used by whom, decide which processes to bring in, allocate and free space. (Module 4)

File-system management

Present storage as files and directories, map them onto disk blocks, control access. (Module 4)

Mass-storage & I/O

Schedule disks, buffer and cache I/O, hide device quirks behind drivers. (Module 5)

Protection & security

Control which process or user may access which resource; defend against attacks. (Module 5)

Virtualization

Let one machine run many isolated OSes or containers. (Module 5)

Keep this list in mind: every later module zooms into one of these boxes.

4. How a modern computer system works

A general-purpose computer has one or more CPUs and several device controllers connected through a common bus to shared memory. Each controller is in charge of one type of device and has a small local buffer and a few registers. For every controller the OS has a device driver that understands it and offers a uniform interface to the rest of the kernel.

Computer-system organisation: CPU, memory and device controllers share a bus; drivers speak to controllers.
Computer-system organisation: CPU, memory and device controllers share a bus; drivers speak to controllers.

The CPU and the controllers run in parallel and compete for memory. When a controller finishes an operation it tells the CPU by raising an interrupt — the event-driven heartbeat of every OS. We study interrupts in detail in Session 1.4; for now remember that an OS is, at its core, a program that waits for events (interrupts, system calls, exceptions) and reacts to them.

Storage is organised as a hierarchy: registers → cache → main memory (volatile) → SSD/HDD → optical/tape (non-volatile). Faster levels are smaller and costlier; the OS constantly moves data between levels — an idea that returns in caching, paging and disk scheduling.

5. Computer-system architecture

ArchitectureWhat it isWhy the OS cares
Single-processorOne general-purpose CPU with one core (plus special-purpose processors in devices).Concurrency is an illusion created by switching between processes.
Multiprocessor (SMP)Two or more CPUs share memory and bus; every CPU runs both OS and user code.Real parallelism → the kernel itself needs locks (Module 3).
MulticoreSeveral cores on one chip, sharing caches.Today's laptops and phones; scheduling must balance load across cores.
ClusteredSeparate computers joined by a network, often sharing storage.High availability and high-performance computing; leads to distributed OSes.

6. A short history of operating systems

Operating systems were not designed in one go — every feature you will meet in this course was invented to fix a specific bottleneck of the previous generation. Read the history as a chain of problem → idea.

  • 1940s – early 1950s · No OSSerial processing. Programmers booked the machine by the hour and loaded programs by hand (plugboards, switches, punched cards). Problem: the expensive computer sat idle during set-up.
  • 1950s · Simple batch systemsResident monitor. An operator grouped similar jobs into a batch; a small resident program (the monitor) read each job's control cards (JCL) and loaded the next job automatically. Problem: the CPU still waited while slow card readers and printers did I/O.
  • 1960s · MultiprogrammingKeep several jobs in memory. When one job waits for I/O, the OS switches the CPU to another (IBM OS/360). Needed memory management, CPU scheduling and protection. Spooling overlapped I/O of one job with computation of another.
  • 1960s – 70s · Time-sharingInteractive computing. Switch between jobs so often (time slices) that each user at a terminal feels they own the machine (CTSS 1961, MULTICS 1965). Required response time, file systems and per-user protection.
  • 1969 – 1973 · UNIXThompson and Ritchie at Bell Labs build a small, elegant time-sharing OS and rewrite it in C (1973) — making an OS portable for the first time. Its ideas (processes, files, shell, pipes) are everywhere today.
  • 1980s · Personal computersMS-DOS (1981), Apple Macintosh with a GUI (1984). One user, so the focus shifts from utilization to convenience; networking leads to network operating systems.
  • 1990s · Linux, Windows NT, distributed systemsLinux (1991) brings an open-source UNIX-like kernel; Windows NT (1993) a protected, multi-user design. Clusters and the Internet push distributed OSes.
  • 2000s – today · Mobile, embedded, virtualized, cloudiOS (2007) and Android (2008), real-time and embedded OSes inside cars and appliances, hypervisors and containers that let one server host many systems (Module 5).
Batch systems: jobs grouped and run one after another, no interaction.
Batch systems: jobs grouped and run one after another, no interaction.
Multiprogramming: several jobs in memory; the CPU switches when one waits for I/O.
Multiprogramming: several jobs in memory; the CPU switches when one waits for I/O.
Time-sharing: short time slices give every user interactive response.
Time-sharing: short time slices give every user interactive response.
Distributed systems: independent computers cooperating over a network.
Distributed systems: independent computers cooperating over a network.
Real-time / embedded systems: correctness depends on meeting deadlines.
Real-time / embedded systems: correctness depends on meeting deadlines.

Types of operating systems at a glance

TypeMain goalUser interactionExample
BatchThroughput of similar jobsNone while the job runsIBM OS/360 batch, payroll runs
MultiprogrammedCPU utilizationLittleMainframe OSes of the 1960s
Time-sharing (multitasking)Short response timeInteractiveUNIX, Linux, Windows
DistributedResource sharing, reliability, speed-up across machinesInteractive, transparentCluster/cloud OSes
Real-time (hard / soft)Meet deadlinesUsually sensor-drivenVxWorks, FreeRTOS, QNX
Mobile / embeddedBattery life, touch, small footprintTouch, voiceAndroid, iOS
Worked example — why multiprogramming was worth it

Suppose a job spends a fraction p = 0.8 of its time waiting for I/O. With n independent jobs in memory, the CPU is idle only when all of them wait, so (a simple probabilistic model, Tanenbaum):

\[ \text{CPU utilization} \approx 1 - p^{\,n} \]

n = 1 → 1 − 0.8 = 20% · n = 2 → 1 − 0.64 = 36% · n = 4 → 1 − 0.41 = 59% · n = 8 → 1 − 0.17 = 83%. Four times the utilization from the same hardware — which is exactly why OSes learned to manage many processes in memory at once.

CPU utilization rises as more jobs are kept in memory.
CPU utilization rises as more jobs are kept in memory.

VideoBytes

What is an operating system?

Video coming soon

What is an operating system?

Recorded by Dr. Krithika L.B. Slot m1-what-is-an-os

History of operating systems

Video coming soon

History of operating systems

Recorded by Dr. Krithika L.B. Slot m1-history-of-os

Interactive lessons

Work through these in order after the lecture — each one expands a part of the notes with diagrams, hover notes and a quick check.

Lab connection

Check your understanding

Answer each question in your own words first, then reveal the model answer.

Revealed 0
Why is the kernel described as “the one program running at all times”?

Because applications and system programs start and stop, but the kernel is loaded at boot and stays resident until shutdown, handling every interrupt, system call and exception. Everything else runs on top of it.

Give one decision an OS makes as a resource allocator and one as a control program.

Resource allocator: which of two ready processes gets the CPU next, or which process loses a memory page when RAM is full. Control program: stopping a process that tries to execute a privileged instruction or access memory outside its own space.

What problem of simple batch systems did multiprogramming solve, and what new problems did it create?

It removed CPU idle time during I/O by keeping several jobs in memory. In exchange the OS now needed CPU scheduling, memory management (several jobs in RAM) and protection (jobs must not overwrite one another).

How is time-sharing different from multiprogramming?

Both keep many jobs in memory. Multiprogramming switches only when a job waits (goal: utilization). Time-sharing also switches on a timer after a short time slice (goal: response time), so interactive users each feel they own the machine.

With p = 0.9 (very I/O-bound jobs), how many jobs are needed to reach at least 50% CPU utilization?

Need 1 − 0.9n ≥ 0.5 → 0.9n ≤ 0.5 → n ≥ 6.58, so 7 jobs.

Key takeaways

  • The OS is the intermediary between users/applications and hardware; the kernel is its always-resident core.
  • User view = convenience and performance; system view = resource allocator + control program.
  • Device controllers work in parallel with the CPU and signal completion with interrupts.
  • Each OS generation solved the bottleneck of the previous one: batch → multiprogramming → time-sharing → distributed and mobile.

Where this leads

So many responsibilities — scheduling, memory, files, devices, protection — have to live inside one program. How do designers organise millions of lines of kernel code without it collapsing under its own weight? That is the question of OS structure.

Continue to 1.2 — Operating-system structure →