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)
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
3
Q
How does the OS Handle interrupts?
A
- Program counter saved
- Transfer control to ISR. This may include saving registers. ISR executes on per-thread kernel stack. Must then restore register state before return.
- Transfer control back to original program
4
Q
What is the Interrupt Vector?
A
Interrupt vector indexed by device ID. Each element contains the address of the corresponding ISR
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.