Interrupts Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What can provide an interrupt?

A

Interrupts can be provided by hardware or software

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When do hardware interrupts occur?

A

Hardware interrupts occur when devices indicate they need attention

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When do software interrupts occur?

A

When programs detect an error or illegal operation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What happens when an interrupt takes place?

A
  • Stores interrupted task
  • Interrupt service routine is carried out
  • Then the data is retrieved from the stack and the interrupted task continues
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does the computer store the interrupted task?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does the computer continue the interrupted task?

A
  • The contents of the registers and program counter from the original task are restored from the stack they were placed on
How well did you know this?
1
Not at all
2
3
4
5
Perfectly