Interrupts Flashcards

1
Q

What is polling?

A
  • The CPU checks with each device whether it requires attention
  • This is in-efficient because if the device does not require attention there was no point checking it
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an interrupt?

A

• Device sends a single on the control bus to the CPU to indicate that it requires attention

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

What happens with the ISR (Interrupt Service Routine)?

A
  • A stack is used
  • At the end of the execution step if there is an interrupt, the contents of the PC are transferred to the bottom of the stack
  • The address of the first instruction of the ISR can be moved into the PC
  • When the ISR is finished, the original contents of the PC are popped off the stack back into the PC
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Give two examples of hardware interrupts:

A
  • Power/reset button is pressed

* Memory parity error

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

Give three examples of software interrupts:

A
  • Illegal instruction encountered
  • Arithmetic overflow
  • New log-on request
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Give two examples of Input/Ouput interrupts:

A
  • Buffer nearly empty

* Signal the completion of a data transfer to/from a device

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