Overview#Thread pool is a Software design pattern for achieving concurrency of execution in an Application.
Thread pool, often also called a replicated workers or worker-crew model, maintains multiple threads waiting for tasks to be allocated for concurrent execution by the supervising Application. By maintaining a Thread pool, the model increases performance and avoids latency in execution due to frequent creation and destruction of threads for short-lived tasks.
A common method of scheduling tasks for thread execution is a synchronized queue, known as a task queue. The worker threads in the Thread pool remove waiting tasks from the queue, and place them into a completed task queue after completion of execution.thread pools there are different classifications of threads: