From owner-freebsd-current@FreeBSD.ORG Mon Oct 30 16:33:41 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 0DA4616A416; Mon, 30 Oct 2006 16:33:41 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 614F643D72; Mon, 30 Oct 2006 16:33:37 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id k9UGXTRd022443; Mon, 30 Oct 2006 08:33:29 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id k9UGXSnC022442; Mon, 30 Oct 2006 08:33:28 -0800 (PST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Mon, 30 Oct 2006 08:33:27 -0800 From: Greg Lewis To: Julian Elischer Message-ID: <20061030163327.GA22419@misty.eyesbeyond.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45458C7E.50104@elischer.org> User-Agent: Mutt/1.4.2.2i Cc: Lev Serebryakov , Paul Allen , Robert Watson , 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:33:41 -0000 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 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. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org