views:

236

answers:

2

HI

I just came across a new term thread pool. I don't know what it is, can any body offer some information about this?

What it is a thread pool and how it is implemented?

Is a thread pool just a collection of thread?

+2  A: 

ThreadPool is basically collection of threads. Whenever a task is assigned to the threadpool, the available thread accepts the task and executes it.

The advantages of thread pool is to control the threads creation\destruction and also, optimize the thread usage.

Thread Pool concept is not the C++ language feature. There are many custom implementation of thread Pool. ( Using different strategies).

You can also read

to know more.

aJ