Date: Sun, 01 Feb 2004 14:25:37 +0200 From: Petri Helenius <pete@he.iki.fi> To: Julian Elischer <julian@elischer.org> Cc: freebsd-threads@freebsd.org Subject: Re: pthread_create() blocks if maxthreads reached? Message-ID: <401CF041.1050301@he.iki.fi> In-Reply-To: <Pine.BSF.4.21.0401312317590.38031-100000@InterJet.elischer.org> References: <Pine.BSF.4.21.0401312317590.38031-100000@InterJet.elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?401CF041.1050301>