From owner-freebsd-threads@FreeBSD.ORG Sun Feb 1 08:47:04 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 D091C16A4CE for ; Sun, 1 Feb 2004 08:47:04 -0800 (PST) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8896943D2F for ; Sun, 1 Feb 2004 08:47:03 -0800 (PST) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.31.45.197]) by comcast.net (sccrmhc12) with ESMTP id <2004020116470201200qe7k8e>; Sun, 1 Feb 2004 16:47:02 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost.crodrigues.org [127.0.0.1])i11GkuG9003492; Sun, 1 Feb 2004 11:46:56 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)i11GJxhi003376; Sun, 1 Feb 2004 11:19:59 -0500 (EST) (envelope-from rodrigc) Date: Sun, 1 Feb 2004 11:19:58 -0500 From: Craig Rodrigues To: Mike Makonnen Message-ID: <20040201161958.GA3362@crodrigues.org> References: <20040201061212.GA6349@crodrigues.org> <20040201152105.GA2370@crodrigues.org> <20040201153652.GA2637@mobile.acs-et.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040201153652.GA2637@mobile.acs-et.com> User-Agent: Mutt/1.4.1i 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:47:04 -0000 On Sun, Feb 01, 2004 at 06:36:52PM +0300, Mike Makonnen wrote: > > > Successfully? > > > that's interesting.. libthr should theoretically b elimited to about > > > 8000 threads.. (on x86). > > > > If I link with -lthr, I get: > > > > Max threads reached at: 109 > > > > There was an artificial limit, which I just bumped up to the max allowable > limit a few minutes ago. Yes, now if I link my test program with -lthr, I get: Max threads reached at: 8173 pthread_create() does not block for libthr, while it does for libpthread. libthr seems better behaved in this respect. -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org