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
2
Q
What is an interrupt?
A
• Device sends a single on the control bus to the CPU to indicate that it requires attention
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
4
Q
Give two examples of hardware interrupts:
A
- Power/reset button is pressed
* Memory parity error
5
Q
Give three examples of software interrupts:
A
- Illegal instruction encountered
- Arithmetic overflow
- New log-on request
6
Q
Give two examples of Input/Ouput interrupts:
A
- Buffer nearly empty
* Signal the completion of a data transfer to/from a device