[haiku] Re: Haiku threads vs pthreads

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Wed, 01 Dec 2010 23:01:03 +0100

On 2010-12-01 at 22:23:20 [+0100], hudsonco1@xxxxxxx wrote:
> I'm reading up on using threads on Haiku. I see that pthreads are available 
> on Haiku. Can anyone tell me
> if there are advantages to using Haiku native threads versus pthreads? I'm 
> interested in stability, performance,
> compatibility, features, etc.

No relevant difference. In fact since a while back (earlier this year?) they 
do virtually the same under the hood (the native threads also creating 
pthread objects internally). Use whatever interface you like better. Use 
pthreads when you need portability.

CU, Ingo

Other related posts: