Context Switch
Changing the running process
A context switch is non-negligible cost
- Saving floating point
- Flushing TLB
- More cache misses
What needs to be done?
- Always save program counter and integer registers
- Save floating point or other special registers
- Save condition codes
- Change virtual address translations