c++ with pthread?
NKoch at demig.de
Mon Nov 7 23:07:02 PST 2005
> -----Original Message-----
> From: Nicolas Blais [mailto:nb_root at videotron.ca]
> Sent: Monday, November 07, 2005 10:38 PM
> To: Norbert Koch
> Cc: freebsd-threads at freebsd.org
> Subject: Re: c++ with pthread?
> On November 7, 2005 02:10 am, Norbert Koch wrote:
> > Hi.
> > If you want to have classes with threads, I suggest
> > you try the port devel/commoncpp. It is a portable
> > c++ library for multi-threading. From my experience
> > it works fine.
> > Norbert
> Thanks for your reply!
> Performance wise, would you think commoncpp is better with threads than
> directly pthread?
Commoncpp tries to be platform-independent. So, no.
What performance are you talking about? Thread creation
may be slower, but context changes are always handled by
pthread. So there would be no difference.
Mutexes and conditionals will be slower too.
I never ran any benchmarks.
More information about the freebsd-threads