Explain it in 60 seconds
Context switching cost
Backend Engineering · Concurrency · Beginner
What is a context switch, and why can too many threads hurt performance?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- CPU switches from one thread to another.
- Save/restore registers, caches disrupted.
- Too many threads → time wasted switching.
- Memory per thread stack.
- Lightweight threads/async reduce cost.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.