pthread_create() blocks if maxthreads reached?

Craig Rodrigues rodrigc at crodrigues.org
Sun Feb 1 08:47:04 PST 2004


On Sun, Feb 01, 2004 at 06:36:52PM +0300, Mike Makonnen wrote:
> > > Successfully? 
> > > that's interesting.. libthr should theoretically b elimited to about
> > > 8000 threads.. (on x86).
> > 
> > If I link with -lthr, I get:
> > 
> > Max threads reached at: 109
> > 
> 
> There was an artificial limit, which I just bumped up to the max allowable
> limit a few minutes ago.

Yes, now if I link my test program with -lthr, I get:

Max threads reached at: 8173

pthread_create() does not block for libthr, while it
does for libpthread.  libthr seems better behaved in this respect.

-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc at crodrigues.org


More information about the freebsd-threads mailing list