Demo: Counting Context Switches¶
Uses the change_state program of part 04.
Run¶
In a second terminal, at the prompt and during each burst:
Ask¶
- One voluntary switch per wait at the prompt. What did the thread call?
- A hundred involuntary switches per burst, on a thread that never asked to leave. Who took the CPU, and why?