SlideShare a Scribd company logo
2
Most read
3
Most read
8
Most read
Operating System Concepts: 2
Handling of Interrupts
Prof Neeraj Bhargava
Vaibhav Khanna
Department of Computer Science
School of Engineering and Systems Sciences
Maharishi Dayanand Saraswati University Ajmer
Computer System Organization
• Computer-system operation
– One or more CPUs, device controllers connect
through common bus providing access to
shared memory
– Concurrent execution of CPUs and devices
competing for memory cycles
Computer-System Operation
• I/O devices and the CPU can execute
concurrently
• Each device controller is in charge of a
particular device type
• Each device controller has a local buffer
• Each device controller type has an operating
system device driver to manage it
• CPU moves data from/to main memory to/from
local buffers
• I/O is from the device to local buffer of
controller
• Device controller informs CPU that it has
finished its operation by causing an interrupt
Common Functions of Interrupts
• Interrupt transfers control to the interrupt
service routine generally, through the
interrupt vector, which contains the
addresses of all the service routines
• Interrupt architecture must save the
address of the interrupted instruction
• A trap or exception is a software-
generated interrupt caused either by an
error or a user request
• An operating system is interrupt driven
Interrupt Timeline
Computer Startup
• bootstrap program is loaded at
power-up or reboot
– Typically stored in ROM or EPROM,
generally known as firmware
– Initializes all aspects of system
– Loads operating system kernel and
starts execution
Interrupt Handling
• The operating system preserves the
state of the CPU by storing registers
and the program counter
• Determines which type of interrupt has
occurred:
– polling
– vectored interrupt system
• Separate segments of code determine
what action should be taken for each
type of interrupt
Interrupt-drive I/O Cycle

More Related Content

PPTX
Memory management ppt
PPTX
process and thread.pptx
PDF
Deadlock Avoidance - OS
PDF
Triggers and Stored Procedures
PPT
Os Threads
PPTX
Basics of JAVA programming
PPTX
Deadlock- Operating System
PPTX
Introduction to Software Engineering
Memory management ppt
process and thread.pptx
Deadlock Avoidance - OS
Triggers and Stored Procedures
Os Threads
Basics of JAVA programming
Deadlock- Operating System
Introduction to Software Engineering

What's hot (20)

PPT
PPTX
Compiler an overview
PDF
computer system structure
PPTX
Optimistic concurrency control in Distributed Systems
PPTX
Process state in OS
PPTX
Data Encryption Standard (DES)
PPTX
Presentation on Operating System & its Components
PPTX
Java RMI
PPTX
Fault tolerance in distributed systems
PPTX
Windows memory management
PDF
Reactive Programming for Real Use Cases
PPTX
Management of I/O request & Communication among devices
PPT
Sq lite database
PPT
Active directory
PPTX
Recovery techniques
PPTX
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
PPTX
Lecture 3 threads
PPTX
Active Directory component
PDF
Unit-4 networking basics in java
Compiler an overview
computer system structure
Optimistic concurrency control in Distributed Systems
Process state in OS
Data Encryption Standard (DES)
Presentation on Operating System & its Components
Java RMI
Fault tolerance in distributed systems
Windows memory management
Reactive Programming for Real Use Cases
Management of I/O request & Communication among devices
Sq lite database
Active directory
Recovery techniques
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
Lecture 3 threads
Active Directory component
Unit-4 networking basics in java
Ad

Similar to OS concepts 2 handling of interrupts (20)

PDF
operatingsystem03handlingofinterrupts-210603182850.pdf
PPTX
operatingsystem03handlingofinterrupts-210603182850.pptx
PPTX
Operating system 03 handling of interrupts
PPTX
2--Computer-System-Organization-13022025-114937am.pptx
PPT
chapter1.ppt
PPT
03_Top Level View of Computer Function and Interconnection.ppt
PPTX
Computer system architecture
PDF
1 introduction
PPTX
Os concepts 3 I/O and storage Basics
PPTX
OS Introduction
PDF
OS Lecture 01 Introductiodg (Slides).pdf
PDF
A transfer from I/O device to memory requires the execution of several instru...
PDF
Docs_CSEOSLNotes2013.pdf
PDF
OPERATING SYSTEM
PDF
PB1MAT_TIF17 - Pertemuan 1-2ghfctrerdxt.pdf
PPTX
How Operating system works.
PPT
Report in SAD
PPTX
1Chapter One- Introdtionfghertgtujffg.pptx
PDF
Operating systems-chapter-1 silberschatz
operatingsystem03handlingofinterrupts-210603182850.pdf
operatingsystem03handlingofinterrupts-210603182850.pptx
Operating system 03 handling of interrupts
2--Computer-System-Organization-13022025-114937am.pptx
chapter1.ppt
03_Top Level View of Computer Function and Interconnection.ppt
Computer system architecture
1 introduction
Os concepts 3 I/O and storage Basics
OS Introduction
OS Lecture 01 Introductiodg (Slides).pdf
A transfer from I/O device to memory requires the execution of several instru...
Docs_CSEOSLNotes2013.pdf
OPERATING SYSTEM
PB1MAT_TIF17 - Pertemuan 1-2ghfctrerdxt.pdf
How Operating system works.
Report in SAD
1Chapter One- Introdtionfghertgtujffg.pptx
Operating systems-chapter-1 silberschatz
Ad

More from Vaibhav Khanna (20)

PPTX
Information and network security 47 authentication applications
PPTX
Information and network security 46 digital signature algorithm
PPTX
Information and network security 45 digital signature standard
PPTX
Information and network security 44 direct digital signatures
PPTX
Information and network security 43 digital signatures
PPTX
Information and network security 42 security of message authentication code
PPTX
Information and network security 41 message authentication code
PPTX
Information and network security 40 sha3 secure hash algorithm
PPTX
Information and network security 39 secure hash algorithm
PPTX
Information and network security 38 birthday attacks and security of hash fun...
PPTX
Information and network security 37 hash functions and message authentication
PPTX
Information and network security 35 the chinese remainder theorem
PPTX
Information and network security 34 primality
PPTX
Information and network security 33 rsa algorithm
PPTX
Information and network security 32 principles of public key cryptosystems
PPTX
Information and network security 31 public key cryptography
PPTX
Information and network security 30 random numbers
PPTX
Information and network security 29 international data encryption algorithm
PPTX
Information and network security 28 blowfish
PPTX
Information and network security 27 triple des
Information and network security 47 authentication applications
Information and network security 46 digital signature algorithm
Information and network security 45 digital signature standard
Information and network security 44 direct digital signatures
Information and network security 43 digital signatures
Information and network security 42 security of message authentication code
Information and network security 41 message authentication code
Information and network security 40 sha3 secure hash algorithm
Information and network security 39 secure hash algorithm
Information and network security 38 birthday attacks and security of hash fun...
Information and network security 37 hash functions and message authentication
Information and network security 35 the chinese remainder theorem
Information and network security 34 primality
Information and network security 33 rsa algorithm
Information and network security 32 principles of public key cryptosystems
Information and network security 31 public key cryptography
Information and network security 30 random numbers
Information and network security 29 international data encryption algorithm
Information and network security 28 blowfish
Information and network security 27 triple des

Recently uploaded (20)

DOCX
573137875-Attendance-Management-System-original
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPT
Mechanical Engineering MATERIALS Selection
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
web development for engineering and engineering
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Digital Logic Computer Design lecture notes
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
composite construction of structures.pdf
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
UNIT 4 Total Quality Management .pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
PPT on Performance Review to get promotions
PPTX
Lecture Notes Electrical Wiring System Components
573137875-Attendance-Management-System-original
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
R24 SURVEYING LAB MANUAL for civil enggi
Mechanical Engineering MATERIALS Selection
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
web development for engineering and engineering
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Foundation to blockchain - A guide to Blockchain Tech
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Digital Logic Computer Design lecture notes
CYBER-CRIMES AND SECURITY A guide to understanding
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
composite construction of structures.pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
UNIT 4 Total Quality Management .pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPT on Performance Review to get promotions
Lecture Notes Electrical Wiring System Components

OS concepts 2 handling of interrupts

  • 1. Operating System Concepts: 2 Handling of Interrupts Prof Neeraj Bhargava Vaibhav Khanna Department of Computer Science School of Engineering and Systems Sciences Maharishi Dayanand Saraswati University Ajmer
  • 2. Computer System Organization • Computer-system operation – One or more CPUs, device controllers connect through common bus providing access to shared memory – Concurrent execution of CPUs and devices competing for memory cycles
  • 3. Computer-System Operation • I/O devices and the CPU can execute concurrently • Each device controller is in charge of a particular device type • Each device controller has a local buffer • Each device controller type has an operating system device driver to manage it • CPU moves data from/to main memory to/from local buffers • I/O is from the device to local buffer of controller • Device controller informs CPU that it has finished its operation by causing an interrupt
  • 4. Common Functions of Interrupts • Interrupt transfers control to the interrupt service routine generally, through the interrupt vector, which contains the addresses of all the service routines • Interrupt architecture must save the address of the interrupted instruction • A trap or exception is a software- generated interrupt caused either by an error or a user request • An operating system is interrupt driven
  • 6. Computer Startup • bootstrap program is loaded at power-up or reboot – Typically stored in ROM or EPROM, generally known as firmware – Initializes all aspects of system – Loads operating system kernel and starts execution
  • 7. Interrupt Handling • The operating system preserves the state of the CPU by storing registers and the program counter • Determines which type of interrupt has occurred: – polling – vectored interrupt system • Separate segments of code determine what action should be taken for each type of interrupt