From owner-freebsd-current@FreeBSD.ORG Mon Oct 30 16:45:45 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96D6C16A412; Mon, 30 Oct 2006 16:45:44 +0000 (UTC) (envelope-from eischen@vigrid.com) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C7EB43D82; Mon, 30 Oct 2006 16:44:59 +0000 (GMT) (envelope-from eischen@vigrid.com) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.7/8.13.7/NETPLEX) with ESMTP id k9UGiZiC027970; Mon, 30 Oct 2006 11:44:35 -0500 (EST) Date: Mon, 30 Oct 2006 11:44:35 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Greg Lewis In-Reply-To: <20061030163327.GA22419@misty.eyesbeyond.com> Message-ID: References: <45426071.7020403@elischer.org> <602423478.20061028001449@serebryakov.spb.ru> <4542896D.1050001@elischer.org> <20061027231642.GJ30707@riyal.ugcs.caltech.edu> <45429703.8070305@elischer.org> <20061028104741.Q69980@fledge.watson.org> <45442A35.2030803@elischer.org> <20061029090309.T27107@fledge.watson.org> <20061029182108.GA46604@misty.eyesbeyond.com> <45458C7E.50104@elischer.org> <20061030163327.GA22419@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-2.0.2 (mail.ntplx.net [204.213.176.10]); Mon, 30 Oct 2006 11:44:35 -0500 (EST) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: Paul Allen , Lev Serebryakov , Robert Watson , Julian Elischer , current@freebsd.org Subject: Re: KSE, libpthread & libthr: almost newbie question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2006 16:45:45 -0000 On Mon, 30 Oct 2006, Greg Lewis wrote: > On Sun, Oct 29, 2006 at 09:24:14PM -0800, Julian Elischer wrote: >> Greg Lewis wrote: >> >>> If you really want to know, just send the running process a SIGQUIT and >>> it will dump the currently running threads to stdout. But yes, 1.4 and 1.5 >>> both use "native" threads which correspond 1:1 with OS threads (plus >>> there are threads the JVM creates itself, as you note). The JVM threads >>> include garbage collection and AWT event handlers at least. >>> >> >> I gather it doesn't use libpthread, but rather just the syscalls? > > No, it does use libpthread (or libthr, or libc_r if you so choose). What > I'm saying is that the JVM maps a single Java thread to a single library of your choice> thread. How that maps to a kernel thread is > then defined by the threading library. > > The point is that the JVM doesn't do any internal M:N business itself, > which was the original point under discussion IIRC. Does the JVM specify system or process scope threads when it does its mapping? Or does it not use pthread_attr_setscope() at all? (I know this doesn't apply to libthr or libc_r, only libpthread.) -- DE