From owner-freebsd-threads@FreeBSD.ORG Sun Feb 1 09:00:10 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B51416A4CE for ; Sun, 1 Feb 2004 09:00:10 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 010E543D1D for ; Sun, 1 Feb 2004 09:00:09 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i11H03iw007329; Sun, 1 Feb 2004 12:00:03 -0500 (EST) Date: Sun, 1 Feb 2004 12:00:03 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Petri Helenius In-Reply-To: <401D2EBD.2030609@he.iki.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: Julian Elischer cc: freebsd-threads@freebsd.org Subject: Re: pthread_create() blocks if maxthreads reached? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 17:00:10 -0000 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