Computer Systems - A Programmer's Perspective
Table of Contents
1. Optimizing Performance
2. Exceptional Control Flow
Class | Cause | Async/Sync | Return Behaviour |
---|---|---|---|
Interrupt | Signal from I/O Device | Async | Return to next instruction |
Trap | Intentional Exceptional | Sync | Return to next instruction |
Fault | Potentially recoverable error | Sync | Might return to current instruction |
Abort | Nonrecoverable error | Sync | Never returns |
Async mean the execption are not caused by the execution of any particular instruction.
Interrupt:
- Clock
- I/O
Trap:
- Syscall
Fault:
- Division by zero
- Page fault
Abort:
- Parity error in DRAM, SRAM