Review: Interrupts and Exceptions
Unnatural change in control flow
Interrupt is external event
- devices: disk, network, keyboard, etc.
- clock for timeslicing
- these are useful events, must do something when they occur.
Exception is often potential problem with program
- segmentation fault
- bus error
- divide by 0
- don’t want my bug to crash the entire machine
- page fault (virtual memory…)