Difference between revisions of "Interrupts"
(→Interrupt) |
(→Process) |
||
Line 14: | Line 14: | ||
#current processor state saved on stack | #current processor state saved on stack | ||
#Source of interrupt identified | #Source of interrupt identified | ||
− | #Appropriate interrupt service routine | + | #Appropriate interrupt service routine called |
#processor state restored | #processor state restored |
Latest revision as of 08:16, 4 February 2019
Overview
https://www.youtube.com/watch?v=PCYI1o592dQ&list=PLCiOXwirraUDUYF_qDYcZV8Hce8dsE_Ho&index=122
Interrupt
An interrupt is a signal from a peripheral or software program that causes the operating system to stop processing its current list of instructions. This will attract the attention of the processor, this will occur for example when a process or instruction causes an error to occur, for example if your printer is out of paper or if a program has crashed.
An interrupt would also be generated when the user presses a key or moves the mouse.
The operating system is responsible for detecting the interrupt signal and performing the necessary tasks or displaying the appropriate messages. Multi-tasking is only possible because the processor can be interrupted in this way.
Process
- current processor state saved on stack
- Source of interrupt identified
- Appropriate interrupt service routine called
- processor state restored