Subject: Re: pthread, pth select
To: Nick Hudson <skrll@netbsd.org>
From: Jorgen Lundman <lundman@lundman.net>
List: netbsd-users
Date: 10/03/2003 16:15:44
Does that include if it is included as pthread.h and linked against -lpthread 
(but come from pth's pthread compat setup) ?

Version in header is: "1.4.1 (27-Jan-2002)"
Pkginfo say: pth-1.4.1

I know for sure that select() is not releasing cpu. I even tried calling 
phtread_select() directly in case it was somehow missed/defined from header file.

Lund


Nick Hudson wrote:
> 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
> 
> 

-- 
Jorgen Lundman       | <lundman@lundman.net>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)