Complete the sentence to define a thread pool.
A thread pool is a collection of [1] threads that are created to perform tasks concurrently.A thread pool consists of pre-instantiated threads ready to execute tasks, improving efficiency by reusing threads.
Complete the sentence to explain the main benefit of using thread pools.
Thread pools improve performance by reducing the overhead of [1] threads for each task.
Creating and destroying threads for every task is costly. Thread pools reuse threads to save this overhead.
Fix the error in the statement about thread pools.
In a thread pool, new threads are [1] for every incoming task.
Thread pools reuse existing threads instead of creating new ones for each task, which improves efficiency.
Fill both blanks to describe how tasks are handled in a thread pool.
Tasks are placed in a [1] and threads from the pool [2] tasks from it to execute.
Tasks wait in a queue, and threads fetch tasks from this queue to run them.
Fill all three blanks to explain thread pool size management.
The thread pool size is [1] to balance [2] and resource [3].
The size of the thread pool is adjusted to balance throughput (work done) and resource usage (CPU, memory).