Abstract
- Switching from one Process (进程)/Thread to another
- Make use of Process Control Block (PCB) to store/retrieve process/thread’s state
An expensive operation
Compare to other operations
- Saving & loading of Register
- Switching out Memory Page (More Expensive) - Not needed for Thread Context Switching, since all Thread of a Process (进程) share the same Memory Address
- Updating various Kernel Data Structure