CS3451 – Introduction to
Operating Systems
UNIT I – INTRODUCTION
Introduction to Operating System
• An Operating System (OS) is an interface
between user and hardware
• Controls execution of programs
• Manages system resources efficiently
• Examples: Windows, Linux, Android, iOS
Goals of Operating System
• Execute user programs
• Make system convenient to use
• Efficient utilization of hardware
• Ensure security and reliability
Computer System Components
• Hardware – CPU, Memory, I/O devices
• Operating System – Resource manager
• Application Programs – User-level software
• Users – Humans or other systems
Diagram: Computer System
User → Application Programs → Operating System → Hardware
User View of Operating System
• Designed for ease of use
• Performance and security oriented
• Desktop, mobile, and voice-based interaction
• Touch and gesture interfaces in mobiles
System View of Operating System
• OS acts as resource allocator
• Manages CPU, memory, I/O, and storage
• Ensures fairness and efficiency
Components of Operating System
• Shell – User interface
• Kernel – Core OS services
• User Mode and Kernel Mode
Diagram: OS Components
User → Shell → Kernel → Hardware
Computer System – Elements &
Organization
• CPU connected to device controllers
• Shared system bus
• Device controllers manage specific devices
• Parallel execution possible
Diagram: System Organization
CPU ↔ System Bus ↔ Memory & Device Controllers
Interrupts
• Hardware interrupts
• Software interrupts (System calls)
• Interrupt vector table
• Interrupt Service Routine (ISR)
Diagram: Interrupt Handling
Device → Interrupt → CPU → ISR → Resume Execution
Storage Structure
• Main Memory (RAM) – Volatile
• Secondary Storage – HDD, SSD
• Tertiary Storage – Backup media
• Memory hierarchy
I/O Structure
• Interrupt-driven I/O
• Direct Memory Access (DMA)
• CPU free during DMA transfer
Diagram: DMA
Device Controller → Main Memory (Without CPU intervention)
Evolution of Operating Systems
• Single Processor Systems
• Multiprocessor Systems
• Multicore Systems
• Clustered Systems
Multiprogramming
• Multiple processes in memory
• CPU always kept busy
• Improves CPU utilization
Diagram: Multiprogramming
Memory contains multiple processes
Multitasking
• Rapid switching between processes
• Interactive systems
• Response time < 1 second
Dual Mode Operation
• User Mode – Limited privileges
• Kernel Mode – Full privileges
• Mode bit for protection
Timer
• Prevents infinite loops
• Generates interrupt after time expires
• Ensures CPU control to OS
Operating System Services
• User Interface
• Program Execution
• I/O Operations
• File System
• Communication
• Security
User & OS Interface
• Command Line Interface
• Graphical User Interface
• Touch Interface
• Voice Interface
• Gesture Interface
System Calls
• Interface between user programs and OS
• Executed in kernel mode
• Provides controlled access to hardware
Diagram: System Call
User Program → System Call → Kernel → Hardware
Types of System Calls
• Process Control
• File Management
• Device Management
• Information Maintenance
• Communication
System Programs
• File manipulation
• Status information
• Programming language support
• Program loading and execution
OS Design & Implementation
• User goals – Convenience, reliability
• System goals – Efficiency, flexibility
• Mechanisms and Policies
Operating System Structures
• Monolithic
• Layered
• Microkernel
• Modular
• Hybrid
Diagram: OS Structures
Different kernel organization approaches
Hybrid Systems
• macOS and iOS
• Android
• Combination of monolithic and microkernel
concepts
Summary
• OS is the backbone of computer systems
• Manages hardware and software
• Provides services for efficient execution

CS3451_Unit1_ operating system Complete.pptx notes