Signals Flashcards

1
Q

What does an Interrupt Driven Architecture do?

A

Synchronisation between CPU and device controllers

HW or software can interrupt the CPU
- Transfer execution to a routine to handle the interrupt. (ISR)

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

What are the different types of interrupts?

A
  • Hardware interrupt via system bus, IO operation completion or error condition
  • Software interrupts, known as traps
  • Timer interrupts
  • Hardware failure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does the OS Handle interrupts?

A
  1. Program counter saved
  2. Transfer control to ISR. This may include saving registers. ISR executes on per-thread kernel stack. Must then restore register state before return.
  3. Transfer control back to original program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the Interrupt Vector?

A

Interrupt vector indexed by device ID. Each element contains the address of the corresponding ISR

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

What is Direct memory access?

A

Specialised processors for transferring data directly between memory and IO devices.

Transfers whole blocks at a time.

CPU only interrupted when block transfer completed.

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