Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2005 08:06:46 +0100
From:      "Norbert Koch" <NKoch@demig.de>
To:        "Nicolas Blais" <nb_root@videotron.ca>
Cc:        freebsd-threads@freebsd.org
Subject:   RE: c++ with pthread?
Message-ID:  <000701c5e432$fb600980$4801a8c0@ws-ew-3.demig.intra>
In-Reply-To: <200511071638.12602.nb_root@videotron.ca>

next in thread | previous in thread | raw e-mail | index | archive | help


> -----Original Message-----
> From: Nicolas Blais [mailto:nb_root@videotron.ca]
> Sent: Monday, November 07, 2005 10:38 PM
> To: Norbert Koch
> Cc: freebsd-threads@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?
> 
> Nicolas.

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000701c5e432$fb600980$4801a8c0>