airekans / Tpool

C++ Thread Pool implementation base on POSIX pthread
https://github.com/airekans/Tpool
MIT License
15 stars 10 forks source link

Implement Work Stealing #3

Open airekans opened 10 years ago

airekans commented 10 years ago

Right now I just used naive centralized task queue to manage task in the thread pool. This may be not so efficient. Try to write some benchmark for it and implement work stealing to improve the performance.

airekans commented 10 years ago

http://www.paulvanbrenk.com/blog/2008/08/30/BuildingACustomThreadpool.aspx Here's a post talking about the implementation of work stealing.