From owner-freebsd-current@FreeBSD.ORG Mon Oct 30 19:26:20 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 609B016A412; Mon, 30 Oct 2006 19:26:20 +0000 (UTC) (envelope-from prvs=julian=45182861c@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79ABD43E5A; Mon, 30 Oct 2006 19:21:24 +0000 (GMT) (envelope-from prvs=julian=45182861c@elischer.org) Received: from unknown (HELO [10.251.18.229]) ([10.251.18.229]) by a50.ironport.com with ESMTP; 30 Oct 2006 11:21:19 -0800 Message-ID: <454650AF.3070901@elischer.org> Date: Mon, 30 Oct 2006 11:21:19 -0800 From: Julian Elischer User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: Lev Serebryakov 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> <45442A35.2030803@elischer.org> <20061029090309.T27107@fledge.watson.org> <4544D4FC.4070201@samsco.org> <45458C1F.5000006@elischer.org> <31392371.20061030100012@serebryakov.spb.ru> In-Reply-To: <31392371.20061030100012@serebryakov.spb.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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 19:26:20 -0000 Lev Serebryakov wrote: > Hello Julian, > > Monday, October 30, 2006, 8:22:39 AM, you wrote: > > JE> so, why does it use 1:1 threads? > JE> who knows what the thinking here was? > I know. I'm working in Java2SE group (runtime) in Sun now :) > > It usese 1:1 threads because primary platform for Java2SE is Solaris, and threading on Solaris is very good (almost perfect). It is cheaper to have 1:1 threads on Solaris (and on Win32, too, BTW), than have additional layer of custom scheduler in JVM. JVM has many thing to do, and it prefer to use system scheduler. > N:M/1:1 change on Solaris is mostly Solaris change, not Java one: Java uses system default threading. > so what does the jave on freeBSD use? > >