Subject: Re: pthread, pth select
To: Jorgen Lundman <lundman@lundman.net>
From: Nick Hudson <skrll@netbsd.org>
List: netbsd-users
Date: 10/03/2003 08:10:03
On Friday 03 October 2003 6:25 am, Jorgen Lundman wrote:
[...]
> I've come across the situation now that it spawns two helper threads, both
> uses a call to select() to do sleeping. (No fd_sets passed to it).
> 
> I find when I link against -lpthread//usr/pkg/lib/libpthread.so.14 (from
> pth, at least, the /usr/pkg/include/pthread.h is the pth "pthread"
> compatible mode) that the select() calls do not release the CPU.

select(2) is one of the few functions that pkgsrc pth will allow switching 
between threads. Which version of the pth pkg are you using?

Nick