pthread_create() blocks if maxthreads reached?
Petri Helenius
pete at he.iki.fi
Sun Feb 1 04:27:06 PST 2004
Julian Elischer wrote:
> Your threads are all waiting in the kernel.
>
>If you used a blocked semaphore or some other non-kernel
>method of blocking then you would discover that you could do more
>or you could allow more threads to enter the kernel at a time
>but that would be a poor use of resources.. it is much more
>
>
Are you saying that using poll() and serving descriptors sequentially is
significantly
more resource-effective than creating thread blocked on read for each fd?
Pete
More information about the freebsd-threads
mailing list