pthread_create() blocks if maxthreads reached?

Mike Makonnen mtm at identd.net
Sun Feb 1 07:41:41 PST 2004


On Sun, Feb 01, 2004 at 10:21:05AM -0500, Craig Rodrigues wrote:
> On Sat, Jan 31, 2004 at 11:27:39PM -0800, Julian Elischer wrote:
> > On Sun, 1 Feb 2004, Craig Rodrigues wrote:
> > > 
> > > If I link this program with -lthr or -lc_r, the
> > > program will terminate.
> > 
> > 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.

Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm at identd.net | Fingerprint: 00E8 61BC 0D75 7FFB E4D3  6BF1 B239 D010 3215 D418
mtm at FreeBSD.Org| FreeBSD - Unleash the Daemon !


More information about the freebsd-threads mailing list