pthread_create() blocks if maxthreads reached?

Daniel Eischen eischen at vigrid.com
Sun Feb 1 09:00:10 PST 2004


On Sun, 1 Feb 2004, Petri Helenius wrote:

> Craig Rodrigues wrote:
>=20
> >Understood.  Keep in mind, I am trying to "kick the tires"
> >on libpthread, to see how it reacts on crazy corner cases.
> >I can certainly increase the values of these sysctls,
> >but I think that pthread_create() should not block if
> >it hits a limit.
> >
> > =20
> >
> I agree here, pthread_create() should not get blocked sitting somewhere=
=20
> because
> it would easily lead to situations where a "main" thread spawning off=20
> children
> is blocked and cannot report errors or pthread_join() threads that termin=
ate
> because of it=B4s blocked.

Arghh.  pthread_create() isn't blocking!  Please see my other
reply.

--=20
Dan Eischen



More information about the freebsd-threads mailing list