Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2006 10:00:12 +0300
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        Julian Elischer <julian@elischer.org>
Cc:        current@FreeBSD.org
Subject:   Re[2]: KSE, libpthread & libthr: almost newbie question
Message-ID:  <31392371.20061030100012@serebryakov.spb.ru>
In-Reply-To: <45458C1F.5000006@elischer.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> <45442A35.2030803@elischer.org> <20061029090309.T27107@fledge.watson.org> <4544D4FC.4070201@samsco.org> <45458C1F.5000006@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.


-- 
Best regards,
 Lev                            mailto:lev@FreeBSD.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31392371.20061030100012>