SlideShare uma empresa Scribd logo
1 de 12
INTERRUPTS 
321 
COMPUTER ARCHITECTURE AND ORGANIZATION 
MS SAIMA AMBER 
Presented By: 
Zara Tariq 2011/comp/BSCS/12537 1112639 
Yumna Furqan 2011/comp/BSCS/12535 1112637
INTERRUPTS 
 A signal from a device attached to a computer or from a program within the 
computer which causes the main program that operates the computer to stop 
and figure out what to do next. 
 Almost all personal (or larger) computers today are interrupt-driven 
 Mechanism by which other modules(e.g I/O) may interrupt normal sequence 
of processing. 
 Forced transfer of control to a procedure(handler) due to the external 
events(interrupts) or due to an erroneous(exceptions). 
Presented to Ms. Saima Amber
INTERRUPT HANDLING 
 Mechanism 
 Allows interrupts/exceptions to be handled transparently to the executing 
process (application programs and operating system) 
 Procedure 
 When an interrupt Is received or an exception condition detection, the 
current task is suspended and transfer automatically goes to a handler 
 After the handler is complete, the interrupted task resumes without loss of 
continuity, unless recovery is not possible or the interrupt causes the 
currently running task to be terminated. 
Presented to Ms. Saima Amber
TYPES OF INTERRUPTS 
 Program – Something that occurs as a result of program execution 
such as illegal instructions, arithmetic overflow, divide by zero, or 
memory handling error 
 Timer – Generated by one of the processor's internal timers so that 
the processor can perform some time-scheduled task 
 I/O – Generated by an I/O controller to request service from the 
processor such as keyboard, mouse, NIC, disk drive 
 Hardware failure – signifies some error condition with the 
hardware 
Presented to Ms. Saima Amber
INTERRUPT HANDLING 
 CPU receives the interrupt request (IRQ) when running a program; 
 CPU save its state of execution via a context switch; 
 Begin execution of an interrupt handler/interrupt service routine 
(ISR); 
 When ISR finishes, CPU switch state back and continue the original 
program. 
Presented to Ms. Saima Amber
PROGRAM FLOW CONTROL 
Presented to Ms. Saima Amber
INTERRUPT CYCLE 
 Added to instruction cycle 
 Processor checks for interrupt 
 Indicated by an interrupt signal 
 If no interrupt, fetch next instruction 
 If interrupt pending: 
 Suspend execution of current program 
 Save context 
 Set PC to start address of interrupt handler routine 
 Process interrupt 
 Restore context and continue interrupted program 
Presented to Ms. Saima Amber
INSTRUCTION CYCLE (WITH INTERRUPTS) 
STATE DIAGRAM 
Presented to Ms. Saima Amber
MULTIPLE INTERRUPTS 
 Disable interrupts 
 Processor will ignore further interrupts while processing one interrupt. 
 Interrupts remain pending and are checked after first interrupt has been 
processed. 
 Interrupts handled in sequence as they occur. 
 Define priorities 
 Low priority interrupts can be interrupted by higher priority interrupts. 
 When higher priority interrupt has been processed, processor returns to 
previous interrupt. 
Presented to Ms. Saima Amber
MULTIPLE INTERRUPTS (SEQUENTIAL) 
Presented to Ms. Saima Amber
MULTIPLE INTERRUPTS (NESTED) 
Presented to Ms. Saima Amber
Thank You All For Your Kind Attention 
Your Presenters: Zara Tariq & Yumna Furqan

Mais conteúdo relacionado

Mais procurados

Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
Kumar
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
Anuj Modi
 

Mais procurados (20)

Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
 
DMA and DMA controller
DMA and DMA controllerDMA and DMA controller
DMA and DMA controller
 
control unit
control unitcontrol unit
control unit
 
CPU Architecture
CPU ArchitectureCPU Architecture
CPU Architecture
 
Instruction cycle presentation
Instruction   cycle presentationInstruction   cycle presentation
Instruction cycle presentation
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
Computer instruction
Computer instructionComputer instruction
Computer instruction
 
Interrupts ppt
Interrupts pptInterrupts ppt
Interrupts ppt
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 
INTERCONNECTION STRUCTURE
INTERCONNECTION STRUCTUREINTERCONNECTION STRUCTURE
INTERCONNECTION STRUCTURE
 
Instruction cycle with interrupts
Instruction cycle with interruptsInstruction cycle with interrupts
Instruction cycle with interrupts
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycle
 
Interrupts of 8086
Interrupts of 8086Interrupts of 8086
Interrupts of 8086
 
Interrupt presentaion
Interrupt presentaionInterrupt presentaion
Interrupt presentaion
 
Computer architecture control unit
Computer architecture control unitComputer architecture control unit
Computer architecture control unit
 
Interrupts
InterruptsInterrupts
Interrupts
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
 
Processor organization & register organization
Processor organization & register organizationProcessor organization & register organization
Processor organization & register organization
 
Basic computer architecture
Basic computer architectureBasic computer architecture
Basic computer architecture
 

Semelhante a Interrupts

MODES OF TRANSFER.pptx
MODES OF TRANSFER.pptxMODES OF TRANSFER.pptx
MODES OF TRANSFER.pptx
22X047SHRISANJAYM
 
Operatingsystems lecture2
Operatingsystems lecture2Operatingsystems lecture2
Operatingsystems lecture2
Gaurav Meena
 
420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx
ddscraft123
 

Semelhante a Interrupts (20)

Interrupts in 8085
Interrupts in 8085Interrupts in 8085
Interrupts in 8085
 
Interrupts
InterruptsInterrupts
Interrupts
 
interruptpresentaion-151207165807-lva1-app6892.pptx
interruptpresentaion-151207165807-lva1-app6892.pptxinterruptpresentaion-151207165807-lva1-app6892.pptx
interruptpresentaion-151207165807-lva1-app6892.pptx
 
Functions of the Operating System
Functions of the Operating SystemFunctions of the Operating System
Functions of the Operating System
 
Central Processing Unit (CPU) – Part 2
Central Processing Unit (CPU) – Part 2Central Processing Unit (CPU) – Part 2
Central Processing Unit (CPU) – Part 2
 
Exception handling in Pipelining in COA
Exception handling in Pipelining in COAException handling in Pipelining in COA
Exception handling in Pipelining in COA
 
MODES OF TRANSFER.pptx
MODES OF TRANSFER.pptxMODES OF TRANSFER.pptx
MODES OF TRANSFER.pptx
 
Interrupts in CPU
Interrupts in CPUInterrupts in CPU
Interrupts in CPU
 
Interrupts and types of interrupts
Interrupts and types of interruptsInterrupts and types of interrupts
Interrupts and types of interrupts
 
Interrupt 8085
Interrupt 8085Interrupt 8085
Interrupt 8085
 
Operatingsystems lecture2
Operatingsystems lecture2Operatingsystems lecture2
Operatingsystems lecture2
 
Basics of railway principles
Basics of railway principlesBasics of railway principles
Basics of railway principles
 
Computer architecture presentation
Computer architecture presentationComputer architecture presentation
Computer architecture presentation
 
Vino's 8086 interrupts
Vino's 8086 interruptsVino's 8086 interrupts
Vino's 8086 interrupts
 
Interrupts
InterruptsInterrupts
Interrupts
 
Timing n interrupt.pptx
Timing n interrupt.pptxTiming n interrupt.pptx
Timing n interrupt.pptx
 
Inerrupt
InerruptInerrupt
Inerrupt
 
Lect13
Lect13Lect13
Lect13
 
420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx
 
CS304PC:Computer Organization and Architecture Session 15 program control.pptx
CS304PC:Computer Organization and Architecture Session 15 program control.pptxCS304PC:Computer Organization and Architecture Session 15 program control.pptx
CS304PC:Computer Organization and Architecture Session 15 program control.pptx
 

Mais de Zara Tariq

Crime Record Management System (CRMS)
Crime Record Management System (CRMS)Crime Record Management System (CRMS)
Crime Record Management System (CRMS)
Zara Tariq
 

Mais de Zara Tariq (12)

Implementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domainImplementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domain
 
Query optimization techniques in Apache Hive
Query optimization techniques in Apache Hive Query optimization techniques in Apache Hive
Query optimization techniques in Apache Hive
 
Design and evaluation of an io controller for data protection
Design and evaluation of an io controller for data protectionDesign and evaluation of an io controller for data protection
Design and evaluation of an io controller for data protection
 
Stochastic kronecker graphs
Stochastic kronecker graphsStochastic kronecker graphs
Stochastic kronecker graphs
 
Pull Vs. Push Production
Pull Vs. Push ProductionPull Vs. Push Production
Pull Vs. Push Production
 
Crime Record Management System (CRMS)
Crime Record Management System (CRMS)Crime Record Management System (CRMS)
Crime Record Management System (CRMS)
 
Crime Record Management System (CRMS)
Crime Record Management System (CRMS)Crime Record Management System (CRMS)
Crime Record Management System (CRMS)
 
INTERRUPTS
INTERRUPTS INTERRUPTS
INTERRUPTS
 
Toys Vending Machine
Toys Vending MachineToys Vending Machine
Toys Vending Machine
 
An Integrated Cloud Computing Architectural Stack
An Integrated Cloud Computing Architectural Stack An Integrated Cloud Computing Architectural Stack
An Integrated Cloud Computing Architectural Stack
 
Face Detection and Recognition System
Face Detection and Recognition SystemFace Detection and Recognition System
Face Detection and Recognition System
 
JSON
JSONJSON
JSON
 

Último

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Último (20)

University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 

Interrupts

  • 1. INTERRUPTS 321 COMPUTER ARCHITECTURE AND ORGANIZATION MS SAIMA AMBER Presented By: Zara Tariq 2011/comp/BSCS/12537 1112639 Yumna Furqan 2011/comp/BSCS/12535 1112637
  • 2. INTERRUPTS  A signal from a device attached to a computer or from a program within the computer which causes the main program that operates the computer to stop and figure out what to do next.  Almost all personal (or larger) computers today are interrupt-driven  Mechanism by which other modules(e.g I/O) may interrupt normal sequence of processing.  Forced transfer of control to a procedure(handler) due to the external events(interrupts) or due to an erroneous(exceptions). Presented to Ms. Saima Amber
  • 3. INTERRUPT HANDLING  Mechanism  Allows interrupts/exceptions to be handled transparently to the executing process (application programs and operating system)  Procedure  When an interrupt Is received or an exception condition detection, the current task is suspended and transfer automatically goes to a handler  After the handler is complete, the interrupted task resumes without loss of continuity, unless recovery is not possible or the interrupt causes the currently running task to be terminated. Presented to Ms. Saima Amber
  • 4. TYPES OF INTERRUPTS  Program – Something that occurs as a result of program execution such as illegal instructions, arithmetic overflow, divide by zero, or memory handling error  Timer – Generated by one of the processor's internal timers so that the processor can perform some time-scheduled task  I/O – Generated by an I/O controller to request service from the processor such as keyboard, mouse, NIC, disk drive  Hardware failure – signifies some error condition with the hardware Presented to Ms. Saima Amber
  • 5. INTERRUPT HANDLING  CPU receives the interrupt request (IRQ) when running a program;  CPU save its state of execution via a context switch;  Begin execution of an interrupt handler/interrupt service routine (ISR);  When ISR finishes, CPU switch state back and continue the original program. Presented to Ms. Saima Amber
  • 6. PROGRAM FLOW CONTROL Presented to Ms. Saima Amber
  • 7. INTERRUPT CYCLE  Added to instruction cycle  Processor checks for interrupt  Indicated by an interrupt signal  If no interrupt, fetch next instruction  If interrupt pending:  Suspend execution of current program  Save context  Set PC to start address of interrupt handler routine  Process interrupt  Restore context and continue interrupted program Presented to Ms. Saima Amber
  • 8. INSTRUCTION CYCLE (WITH INTERRUPTS) STATE DIAGRAM Presented to Ms. Saima Amber
  • 9. MULTIPLE INTERRUPTS  Disable interrupts  Processor will ignore further interrupts while processing one interrupt.  Interrupts remain pending and are checked after first interrupt has been processed.  Interrupts handled in sequence as they occur.  Define priorities  Low priority interrupts can be interrupted by higher priority interrupts.  When higher priority interrupt has been processed, processor returns to previous interrupt. Presented to Ms. Saima Amber
  • 10. MULTIPLE INTERRUPTS (SEQUENTIAL) Presented to Ms. Saima Amber
  • 11. MULTIPLE INTERRUPTS (NESTED) Presented to Ms. Saima Amber
  • 12. Thank You All For Your Kind Attention Your Presenters: Zara Tariq & Yumna Furqan