Interrupts Flashcards Preview

Paper 2 - Computer Science > Interrupts > Flashcards

Flashcards in Interrupts Deck (6)
Loading flashcards...

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


How does the computer continue the interrupted task?

- The contents of the registers and program counter from the original task are restored from the stack they were placed on