From owner-freebsd-current@FreeBSD.ORG Sat Oct 28 10:02:27 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 F096716A407; Sat, 28 Oct 2006 10:02:27 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from relay1.wplus.net (relay1.wplus.net [195.131.52.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42E8C43D46; Sat, 28 Oct 2006 10:02:26 +0000 (GMT) (envelope-from lev@FreeBSD.org) Received: from desktop.home.serebryakov.spb.ru ([89.163.10.141]) by relay1.wplus.net (8.13.6/8.13.1/RELAY-DVD) with ESMTP id k9SA1eS8002903; Sat, 28 Oct 2006 14:01:44 +0400 (MSD) Date: Sat, 28 Oct 2006 14:01:44 +0400 From: Lev Serebryakov X-Mailer: The Bat! (v2.11.02) Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <219211614.20061028140144@serebryakov.spb.ru> To: Robert Watson In-Reply-To: <20061028104741.Q69980@fledge.watson.org> References: <917908193.20061027102647@serebryakov.spb.ru> <20061027103924.F79313@fledge.watson.org> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Paul Allen , Julian Elischer , Lev Serebryakov , current@FreeBSD.org Subject: Re[2]: KSE, libpthread & libthr: almost newbie question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Lev Serebryakov List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Oct 2006 10:02:28 -0000 Hello Robert, Saturday, October 28, 2006, 1:48:52 PM, you wrote: RW> Does the JVM actually expose thousands of threads to the OS, or does it RW> actually do its own M:N threading internally based on its execution RW> model? RW> My impression is the latter, exposing threads to the OS only when it RW> needs them to consume kernel or CPU resources. Wrong. Java used to be N:M ("green threads") a long time ago, and all actual versions (1.4, 1.5, future 1.6) uses 1:1 model. -- Best regards, Lev mailto:lev@FreeBSD.org