Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Feb 2004 11:19:58 -0500
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        Mike Makonnen <mtm@identd.net>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: pthread_create() blocks if maxthreads reached?
Message-ID:  <20040201161958.GA3362@crodrigues.org>
In-Reply-To: <20040201153652.GA2637@mobile.acs-et.com>
References:  <20040201061212.GA6349@crodrigues.org> <Pine.BSF.4.21.0401312317590.38031-100000@InterJet.elischer.org> <20040201152105.GA2370@crodrigues.org> <20040201153652.GA2637@mobile.acs-et.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@crodrigues.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040201161958.GA3362>