# sar -wP ALL 10 5
Context switching happens when a multi-process OS suspends running one process or thread and starts another. Context switching occurs during any of the following,
- A time slice expires.
- A process exits
- A process puts itself to sleep or in a stopped state.
- A real-time priority process becomes ready to run.
Thanks
No comments:
Post a Comment