
GCC's OpenMP implementation + placing Boost::mutex on shared variables
worked great for me (8 cores fully loaded).
If your code relies on STL algorithms, could be a way to go.
Nil
On Mon, Aug 15, 2011 at 7:27 PM, Gordon Woodhull
On Aug 15, 2011, at 5:23 AM, Norbert Wenzel
wrote: http://threadpool.sourceforge.net/
I've tried it some time ago and wasn't too happy with it. I have to admit I didn't try really hard, but I usually had cores unused. I'm not sure if this was a problem of the threadpool or of my code, but anyway, from browsing their CVS repository on SF the project looks pretty dead, since the last change was two years ago.
Hmm, thanks for the report. Must admit I've seen not-great performance from Boost.Threads synchronization too. Just to steer this back toward topics Boost, note there is also Oliver Kowalke's Task library in the works. Since it uses Context it should be lighter weight. Sounds like TBB is the way to go for now though. Cheers Gordon
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users