Interrupts Flashcards Preview

Paper 2 - Computer Science > Interrupts > Flashcards

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

What can provide an interrupt?

Interrupts can be provided by hardware or software

2

When do hardware interrupts occur?

Hardware interrupts occur when devices indicate they need attention

3

When do software interrupts occur?

When programs detect an error or illegal operation

4

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

5

How does the computer store the interrupted task?

-The values of each register and the PC are put onto the system stack

6

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