1998Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: OT: Java multithreading performance -->
<!--X-From-R13: Hnqvz Fxnpuraxb <igNserrubyq.pebpbqvyr.bet> -->
<!--X-Date: Thu, 17 May 1998 14:11:56 &#45;0700 -->
<!--X-Message-Id: 355FAD3A.8C906292#freehold,crocodile.org -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 9805171723.8xhf@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: OT: Java multithreading performance</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:vt#freehold,crocodile.org">
</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="msg00642.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00648.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00642.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00667.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00647">Author</A>
&nbsp;|&nbsp;<A HREF="#00647">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00647">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: OT: Java multithreading performance</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: OT: Java multithreading performance</LI>
<LI><em>From</em>: Vadim Tkachenko &lt;<A HREF="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</A>&gt;</LI>
<LI><em>Date</em>: Sun, 17 May 1998 22:38:34 -0500</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: "Petidomo List Agent -- Kanga.Nu version" &lt;<A HREF="mailto:petidomo#kanga,nu">petidomo#kanga,nu</A>&gt;</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
Chris Gray wrote:
&gt; 
&gt; [Vadim Tkachenko:]
&gt; 
&gt; :Keep static vector of startup delays;
&gt; :Calculate the average delay and print it (for every successful start);
&gt; :while ( isEnabled() ) Thread.sleep( 1000 );
&gt; 
&gt; Any kind of printing is likely to be comparatively very expensive. Good
&gt; would be going to dev/null, best would be no I/O at all.

You've just hit it :-))

I have the logging routine implemented in such a way that it accepts the
messages and prints... well, makes them available to the final logging
device, in the thread runninh with background priority. When I ran this
est, I had to disable all that stuff because the log was becoming silent
after some number of threads (don't remember the exact number, though).

Although, the goal was to test the limits, so I should have had some
sort of logging, otherwise how do I know when it dies? It's possible to
catch the OutOfMemoryError, which I, frankly, expected more than hitting
a thread limit, but I have no clue what would be the system behavior if
JVM wouldn't be able to create the next thread - as far as I understand,
Java language specification doesn't determine the consequences.

&gt; Chris Gray   cg#ami-cg,GraySage.Edmonton.AB.CA

-- 
Still alive and smile stays on,
Vadim Tkachenko &lt;vt#freehold,crocodile.org&gt;
--
UNIX _is_ user friendly, he's just very picky about who his friends are

-- 
MUD-Dev: Advancing an unrealised future.

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00642" HREF="msg00642.html">[MUD-Dev] Re: OT: Java multithreading performance</A></STRONG>
<UL><LI><EM>From:</EM> cg#ami-cg,GraySage.Edmonton.AB.CA (Chris Gray)</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00642.html">[MUD-Dev] Re: OT: Java multithreading performance</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00648.html">[MUD-Dev] Re: Leaving characters in play</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00642.html">[MUD-Dev] Re: OT: Java multithreading performance</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00667.html">[MUD-Dev] Re: OT: Java multithreading performance</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00647"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00647"><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="00632" HREF="msg00632.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 16 May 1998, 17:16 GMT
<UL>
<LI><strong><A NAME="00638" HREF="msg00638.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Sun 17 May 1998, 00:07 GMT
</LI>
<LI><strong><A NAME="00640" HREF="msg00640.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Sun 17 May 1998, 00:22 GMT
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00642" HREF="msg00642.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 17 May 1998, 17:16 GMT
<UL>
<LI><strong><A NAME="00647" HREF="msg00647.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Sun 17 May 1998, 21:11 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00667" HREF="msg00667.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 18 May 1998, 17:17 GMT
<UL>
<LI><strong><A NAME="00685" HREF="msg00685.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Tue 19 May 1998, 03:50 GMT
<UL>
<LI><strong><A NAME="00688" HREF="msg00688.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Tue 19 May 1998, 05:32 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00727" HREF="msg00727.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 20 May 1998, 13:49 GMT
</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>