thread pool starvation
A state where every pool thread is blocked waiting, so new work queues up and the server slows to a crawl though the processor is idle.
In more detail
The pool adds threads only slowly, so a sudden burst of blocked threads can stall a server for seconds. It is the usual result of blocking on async code with .Result or .Wait() under load.
Related terms
- thread pool — A fixed or bounded set of reusable worker threads that take tasks from a queue, instead of creating a new thread for each task.
- blocking on async code — Calling .Result or .Wait() on a task so that a thread sits idle until the async work finishes.
Taught in
- Async and Await: Managing Concurrency — Modern .NET Core, C# & Enterprise Microservices
- Querying, Change Tracking, and Saving Data — Modern .NET Core, C# & Enterprise Microservices