1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: [Java] multithreading: update and a question -->
<!--X-From-R13: Quevf Uenl <ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Tue, 14 Jul 1998 22:02:41 &#45;0700 -->
<!--X-Message-Id: 199807150458.WAA02517@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: [Java] multithreading: update and a question</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00220.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00222.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00225.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00222.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00221">Author</A>
&nbsp;|&nbsp;<A HREF="#00221">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00221">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: [Java] multithreading: update and a question</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: [Java] multithreading: update and a question</LI>
<LI><em>From</em>: Chris Gray &lt;<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;</LI>
<LI><em>Date</em>: Tue, 14 Jul 1998 22:58:55 -0600</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
 &gt;Any comments about this? What I think about is someone mentioning the
 &gt;concept of having a thread pool where the threads can be reused, but if
 &gt;the case is many-to-many, this will just create the unnessessary
 &gt;overhead (Solaris only).

From what our company marketing people are hearing, the big guns are
steadily moving the PC world towards multiple CPU's. That suggests that
it is unwise to stick to the single-OS-thread model, since you just
aren't going to get good use of the upcoming machines.

I'd guess that whether or not you want one OS thread per Java thread
would end up depending on how many Java threads you use, and how often
you create and destroy them. If you end up with only about a dozen or
less, than going with native threads each is easy, and will work
fairly well. I think we've talked before about having a pool of
threads that can be used for whatever is needed, without having to go
to the considerable expense of creating and recycling them. If the
Java app really does need dozens of threads active at the same time,
its likely going to be a tad slow no matter how you do it.

If you take the Solaris solution, then in a sense you get the best
of both worlds. With few Java threads, you get an OS thread for each
one, and make good use of multiple CPUs. With many Java threads, you
are limiting the use of OS threads, but still getting your Java app
going. Sounds good to me.

What's the name of the new lighter-weight threads in the new Windows
systems? Perhaps they might be appropriate for Java threads, although
I vaguely recall that there is no pre-emptive switching among them.

 &gt;Please consider this as a technical question, not the OS war.

Awwww!


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00232" HREF="msg00232.html">[MUD-Dev] Re: [Java] multithreading: update and a question</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw#under,engr.sgi.com&gt;</li></ul>
<li><strong><A NAME="00222" HREF="msg00222.html">[MUD-Dev] Re: [Java] multithreading: update and a question</A></strong>
<ul compact><li><em>From:</em> Vadim Tkachenko &lt;vt#freehold,crocodile.org&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00220.html">[MUD-Dev] Re: Affordances and social method (Was: Re: Wired Magazine...)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00222.html">[MUD-Dev] Re: [Java] multithreading: update and a question</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00225.html">[MUD-Dev] [CODE RELEASE]  ScryMUD, and the Hegemon Client 1.4.3  (minor release)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00222.html">[MUD-Dev] Re: [Java] multithreading: update and a question</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00221"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00221"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><strong><A NAME="00226" HREF="msg00226.html">[MUD-Dev] Re: [DESIGN] Antagonizing players</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Wed 15 Jul 1998, 07:08 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00228" HREF="msg00228.html">[MUD-Dev] Re: [DESIGN] Antagonizing players</A></strong>, 
quzah <a href="mailto:quzah#geocities,com">quzah#geocities,com</a>, Wed 15 Jul 1998, 16:28 GMT
<UL>
<LI><strong><A NAME="00230" HREF="msg00230.html">[MUD-Dev] Re: [DESIGN] Antagonizing players</A></strong>, 
Richard Woolcock <a href="mailto:KaVir#dial,pipex.com">KaVir#dial,pipex.com</a>, Wed 15 Jul 1998, 18:33 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00225" HREF="msg00225.html">[MUD-Dev] [CODE RELEASE]  ScryMUD, and the Hegemon Client 1.4.3  (minor release)</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Wed 15 Jul 1998, 07:01 GMT
<LI><strong><A NAME="00221" HREF="msg00221.html">[MUD-Dev] Re: [Java] multithreading: update and a question</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 15 Jul 1998, 05:02 GMT
<UL>
<LI><strong><A NAME="00222" HREF="msg00222.html">[MUD-Dev] Re: [Java] multithreading: update and a question</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Wed 15 Jul 1998, 05:56 GMT
<UL>
<LI><strong><A NAME="00223" HREF="msg00223.html">[MUD-Dev] Re: [Java] multithreading: update and a question</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Wed 15 Jul 1998, 06:44 GMT
<UL>
<LI><strong><A NAME="00224" HREF="msg00224.html">[MUD-Dev] Re: [Java] multithreading: update and a question</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Wed 15 Jul 1998, 06:59 GMT
</LI>
<LI><strong><A NAME="00641" HREF="msg00641.html">[MUD-Dev] Re: [Java] multithreading: update and a question</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Tue 11 Aug 1998, 01:59 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>