Interrupts Flashcards

1
Q

What are Hardware interrupts?

A

Hardware interrupts occur when devices indicate they need attention; for example, mouse button pressed.

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

What are Software interrupts?

A

Software interrupts occur when programs detect an error or illegal operation.

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

What happens when an interrupt is generated?

A

When an interrupt is generated, the operating system executes an interrupt service routine; so, if the interrupt is high priority, it causes the fetch-execute cycle to be immediately interrupted after the completion of the current instruction

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

What is a store interrupted task?

A
  • Current instruction finishes its execution
  • Program counter contents stored in memory
  • Register contents stored in memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an Interrupt service routine carried out?

A
  • Interrupt number examined and source of interrupt identified
  • Program counter loaded with start address for interrupt service routine
  • Interrupt service routine is executed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a continue interrupt service?

A
  • Contents of registers from original task restored to memory
  • Program counter contents from original task restored
  • Interrupted task continues
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What happens when a hardware or software interrupt is generated?

A
  • When a hardware or software interrupt is generated, the processor checks the priority of the interrupt.
  • If the interrupt is a higher priority than the current process, then it will be stopped at the completion of the current instruction to deal with the interrupt.
  • Once the interrupt has been dealt with, the interpreted process continues until completion.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly