Flashcards in Interrupts Deck (6)
What can provide an interrupt?
Interrupts can be provided by hardware or software
When do hardware interrupts occur?
Hardware interrupts occur when devices indicate they need attention
When do software interrupts occur?
When programs detect an error or illegal operation
What happens when an interrupt takes place?
- Stores interrupted task
- Interrupt service routine is carried out
- Then the data is retrieved from the stack and the interrupted task continues
How does the computer store the interrupted task?
-The values of each register and the PC are put onto the system stack