Boost logo

Boost Users :

Subject: Re: [Boost-users] boost multithread use all cores in parallel ?
From: Nil Geisweiller (ngeiswei_at_[hidden])
Date: 2011-08-15 23:04:54


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 <gordon_at_[hidden]> wrote:
>
>
> On Aug 15, 2011, at 5:23 AM, Norbert Wenzel <norbert.wenzel.lists_at_[hidden]>
> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net