Software → Operating Systems
Thread Pool
A managed set of worker threads reused to execute tasks without creating a new thread for every task.
Motivation
Thread pool solves the problem of reusing worker threads instead of creating a new thread for every task.
Where it fits
Thread Pool belongs to runtime systems, concurrency, and backend services.
Mental model
A pool keeps a bounded set of workers ready to execute tasks from a queue.
Common mistakes
- Making the pool too large and causing contention.
- Blocking all worker threads with slow I/O.
Related concepts
Thread Pool connects to multithreading, asynchronous programming, blocking I/O, and worker thread.