Subject: Re: Multithreading package for NetBSD
To: John Franklin <franklin@elfie.org>
From: Nick Hudson <skrll@netbsd.org>
List: tech-kern
Date: 10/13/2002 17:26:45
[This probably shouldn't be on tech-kern]

On Sunday 13 October 2002 5:13 pm, John Franklin wrote:
> On Thu, Oct 10, 2002 at 12:45:01PM -0600, kyle.unice@L-3com.com wrote:
> > After looking around for some time, it is not clear what is the
> > library/package of choice for multithreading applications on NetBSD.
> > There is an unproven-pthreads library and a GNU pth library in the
> > packages collection.  pthreads seems to be what most code uses, yet
> > the NetBSD library is marked as "unproven" ... ( making me alittle
> > nervous ).  What do most programmers use to multithread an application
> > on NetBSD?
> 
> I use the pth-1.4.1nb2 package and compile with
> -D_POSIX_THREAD_SYSCALL_SOFT=1 which #define translates blocking system
> calls (such as read()) into thread-aware pth_*() calls.  This works
> reasonably well.

There is no need with that version of the pth package to use 
-D_POSIX_THREAD_SYSCALL_SOFT=1. --enable-syscall-hard has been added to the 
configure options which make its use unnecessary.

Nick