progschj / ThreadPool

A simple C++11 Thread Pool implementation
zlib License
7.63k stars 2.21k forks source link

Support for dynamic running threads #100

Open aorandexiaohai opened 1 year ago

aorandexiaohai commented 1 year ago

The threads count is fixed after initialization.

For example, if the thread count is 4 and the first 4 threads all need much time to finish.

Now, the fifth thread will wait long time to get any CPU time slice.