From owner-freebsd-threads@FreeBSD.ORG Mon Mar 29 19:38:01 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 5719516A4CE for ; Mon, 29 Mar 2004 19:38:01 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED86E43D1D for ; Mon, 29 Mar 2004 19:38:00 -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 i2U3c0tf017605; Mon, 29 Mar 2004 22:38:00 -0500 (EST) Date: Mon, 29 Mar 2004 22:38:00 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Niall Douglas In-Reply-To: <4068DA49.24401.5BE9BE4@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: GDB 6.0 and FreeBSD threads 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: Tue, 30 Mar 2004 03:38:01 -0000 On Tue, 30 Mar 2004, Niall Douglas wrote: > On 29 Mar 2004 at 23:41, Petri Helenius wrote: > > > Why not just run all threads SCOPE_PROCESS? Then the system will do > > that for you. > > The pthreads implementations I've seen won't utilise more than one > processor unless it's SCOPE_SYSTEM. The obviates the reason most > people use threads, hence the success of the 1:1 model which is a > very blunt axe. That's untrue for libpthread. It creates automatically creates one KSE for each CPU. You can increase the number of CPUs by setting sysctls kern.threads.debug=1 and raising kern.threads.virtual_cpu. It also respects pthread_setconcurrency, but you're limited to kern.threads.virtual_cpu. Yes, all process scope threads run in these KSES. -- Dan Eischen