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: Sat, 16 May 1998 17:07:52 &#45;0700 -->
<!--X-Message-Id: 355E2A57.DFFE141D#freehold,crocodile.org -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 9805161611.8xh1@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="msg00636.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00639.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00632.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00640.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00638">Author</A>
&nbsp;|&nbsp;<A HREF="#00638">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00638">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>: Sat, 16 May 1998 19:07:51 -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; :Test algorithm:
&gt; :
&gt; :record the time;
&gt; :fire the thread;
&gt; :wait until it's started;
&gt; :record the interval between the creation time and this moment;
&gt; :wait 100 ms;
&gt; :fire another;
&gt; :perform something in the current thread.
&gt; 
&gt; :P2/300, 128M running Linux &amp; JDK 1.1.3 - no significant impact on other
&gt; :programs, except load very close to 1 (for obvious reasons)
&gt; 
&gt; I'm finally approaching that, except only 64M - am I likely to need more?

Usually no, I didn't specifically select the 128M computer - this is
just my office workstation.

&gt; What happens if your delay is increased from 100ms to, say, 1s? (Other than
&gt; the experiment taking a lot more real-time.)

Don't know yet

&gt; I guess I'm wondering just what is consuming the time - is it the JVM flapping around with 3400 threads,
&gt; or is it a lot of allocs and frees that are consuming the time? If the
&gt; objects for the threads are as simple as possible, doing an
&gt; absolute minimum of allocations/deallocations, how do the numbers change? 

Don't know
&gt; How expensive is the "perform something in the current thread"?

Least expensive. The goal was to test the ability to create some number
of threads, not to benchmark the thread performance. The operation is:

Keep static vector of startup delays;
Calculate the average delay and print it (for every successful start);
while ( isEnabled() ) Thread.sleep( 1000 );

Thread performance should be estimated in a different way, full report
on Monday.

&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="00632" HREF="msg00632.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="msg00636.html">[MUD-Dev] Re: regulating player-created objects</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00639.html">[MUD-Dev] Re: regulating player-created objects</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00632.html">[MUD-Dev] Re: OT: Java multithreading performance</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00640.html">[MUD-Dev] Re: OT: Java multithreading performance</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00638"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00638"><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>[MUD-Dev] Re: Combat  Was Re: Leaving characters in play</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00683" HREF="msg00683.html">[MUD-Dev] Re: Combat  Was Re: Leaving characters in play</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Tue 19 May 1998, 03:36 GMT
</LI>
<LI><strong><A NAME="00686" HREF="msg00686.html">[MUD-Dev] Re: Combat Was Re: Leaving characters in play</A></strong>, 
J C Lawrence <a href="mailto:claw#greek,kanga.nu">claw#greek,kanga.nu</a>, Tue 19 May 1998, 04:28 GMT
</LI>
</ul>
</ul>
<LI><strong><A NAME="00681" HREF="msg00681.html">[MUD-Dev] Re: Combat  Was Re: Leaving characters in play</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Tue 19 May 1998, 02:50 GMT
</LI>
</ul>
</ul>
</LI>
<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
</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>