pthread_create() blocks if maxthreads reached?
Petri Helenius
pete at he.iki.fi
Sun Feb 1 08:53:19 PST 2004
Craig Rodrigues wrote:
>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.
>
>
>
I agree here, pthread_create() should not get blocked sitting somewhere
because
it would easily lead to situations where a "main" thread spawning off
children
is blocked and cannot report errors or pthread_join() threads that terminate
because of it´s blocked.
Pete
More information about the freebsd-threads
mailing list