Unit 1 of 4 · BCA Sem 2

Unit 1: OS overview and structure

Operating Systems notes · PTU syllabus (UGCC2508)

3 min read5 topics10 exam questions
On this page
  1. Unit summary
  2. What is an operating system?
  3. Components and services of an OS
  4. Evolution and types of operating systems
  5. OS structure and architecture
  6. System calls and system programs
  7. Key terms
  8. Quick revision
  9. Important questions

Unit summary

An operating system (OS) is the software that manages a computer's hardware and provides services to programs and users. Without it, every program would have to control the hardware directly. This unit covers what an OS is, how it evolved, its components, services, structure, types and system calls.

After this unit you can

  • Define an operating system and describe its functions and services
  • Trace the evolution and generations of operating systems
  • Compare batch, multiprogramming, time-sharing, parallel, distributed and real-time systems
  • Explain system calls and system programs

PTU syllabus topics

  • Definition
  • evolution
  • components and services of an OS
  • structure and architecture
  • batch systems
  • multiprogramming
  • time-sharing
  • parallel
  • distributed and real-time systems
  • OS services and system calls
  • system programs
  • OS generations
ClassificationTypes of operating system
Operating systems
  • Batch

    Jobs grouped and run without interaction

  • Multiprogramming

    Several programs in memory share the CPU

  • Time-sharing

    Fast switching gives each user a share

  • Real-time

    Guaranteed response within a deadline

  • Distributed

    Many machines work as one system

1

Topic 1

What is an operating system?

An operating system is system software that acts as an interface between the user and the hardware, and as a resource manager that allocates the CPU, memory, files and devices among programs. Examples: Windows, Linux, macOS, Android.

HierarchyLayers of a computer system
  1. Users

    People and other computers

  2. Application programs

    Browsers, editors, games

  3. Operating system

    Controls and coordinates hardware use

  4. Hardware

    CPU, memory, I/O devices

Goals: convenience (easy to use) and efficiency (good use of resources).

2

Topic 2

Components and services of an OS

ClassificationComponents of an OS
Operating system
  • Process management

    Create, schedule, terminate processes

  • Memory management

    Allocate and free memory

  • File management

    Create, delete, organise files

  • I/O and device management

    Drivers, buffering

  • Secondary storage management

    Disk space and scheduling

  • Protection and security

    Control access

Services an OS gives programs and users: user interface (CLI or GUI), program execution, I/O operations, file-system manipulation, communication between processes, error detection, resource allocation, accounting, and protection.

3

Topic 3

Evolution and types of operating systems

TypeKey ideaDrawback or feature
BatchSimilar jobs grouped and run one after another without user interactionCPU idle during I/O; no interaction
MultiprogrammingSeveral programs in memory; CPU switches when one waits for I/OBetter CPU use
Time-sharing (multitasking)CPU time shared in small slices among many usersQuick response; interactive
Parallel (multiprocessor)Several CPUs share memory and work togetherHigher throughput, reliability
DistributedMany independent computers connected by a network act as one systemResource sharing, fault tolerance
Real-timeResults must arrive within strict time limitsHard (missile control) vs soft (video streaming)

Generations: 1st (1945–55) vacuum tubes, no OS; 2nd (1955–65) transistors and batch systems; 3rd (1965–80) ICs, multiprogramming and time-sharing; 4th (1980–present) personal computers, GUIs, networked and mobile OS.

4

Topic 4

OS structure and architecture

  • Simple/monolithic structure: the whole OS runs as one large program in kernel mode (early UNIX, MS-DOS). Fast but hard to maintain.
  • Layered structure: OS divided into layers, each using only the layer below. Easy to debug.
  • Microkernel: only essential services (IPC, scheduling) in the kernel; others run as user processes. Reliable and extensible.
  • Modular: a core kernel with loadable modules (modern Linux).
5

Topic 5

System calls and system programs

A system call is the way a program requests a service from the OS kernel. It switches the CPU from user mode to kernel mode.

ComparisonTypes of system calls
Purpose
Examples

Process control

Create, end, wait for processes

fork(), exit(), wait()

File management

Create, open, read, write files

open(), read(), write(), close()

Device management

Request and release devices

ioctl(), read(), write()

Information maintenance

Get or set time and data

getpid(), time()

Communication

Send and receive messages

pipe(), send(), recv()

System programs (utilities) provide a convenient environment: file managers, compilers, editors, loaders and shells.

Key terms

Operating system
Software that manages hardware and serves users and programs
Kernel
The core part of the OS that runs in privileged mode
System call
A request from a program to the OS kernel
Multiprogramming
Keeping several programs in memory to keep the CPU busy
Real-time system
A system that must respond within fixed time limits

Quick revision

  • OS = interface + resource manager.
  • Batch → multiprogramming → time-sharing → distributed/real-time.
  • Hard real-time: deadlines must be met; soft: occasional misses allowed.
  • System calls move from user mode to kernel mode.

Important exam questions

Practice questions written to the PTU exam pattern for this unit's syllabus: short answers (Section A style) and long answers (Sections B and C style).

Short-answer questions

  1. Q1.Define an operating system and give two examples.
  2. Q2.List four services of an OS.
  3. Q3.Differentiate between multiprogramming and time-sharing.
  4. Q4.What is a real-time OS? Distinguish hard and soft real-time.
  5. Q5.What is a system call?
  6. Q6.What is a microkernel?

Long-answer questions

  1. Q1.Explain the functions and services of an operating system.
  2. Q2.Explain the different types of operating systems with their advantages and disadvantages.
  3. Q3.Describe the evolution and generations of operating systems.
  4. Q4.What are system calls? Explain their types with examples.

Stuck on this unit?

Message SBS on WhatsApp for help with Operating Systems, or to ask about studying BCA at Synetic.

WhatsApp us