From owner-freebsd-threads@FreeBSD.ORG Sun Feb 1 08:53:19 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 607FD16A4CE for ; Sun, 1 Feb 2004 08:53:19 -0800 (PST) Received: from silver.he.iki.fi (helenius.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A9A243D1F for ; Sun, 1 Feb 2004 08:53:17 -0800 (PST) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (localhost [127.0.0.1]) by silver.he.iki.fi (8.12.9p2/8.11.4) with ESMTP id i11GrAgr019020; Sun, 1 Feb 2004 18:53:10 +0200 (EET) (envelope-from pete@he.iki.fi) Message-ID: <401D2EBD.2030609@he.iki.fi> Date: Sun, 01 Feb 2004 18:52:13 +0200 From: Petri Helenius User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Craig Rodrigues References: <20040201061212.GA6349@crodrigues.org> <20040201152105.GA2370@crodrigues.org> In-Reply-To: <20040201152105.GA2370@crodrigues.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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 16:53:19 -0000 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