<!-- MHonArc v2.4.4 --> <!--X-Subject: [MUD-Dev] Re: OT: Java multithreading performance --> <!--X-From-R13: ptNnzv-pt.UenlEntr.Sqzbagba.OP.QO (Quevf Uenl) --> <!--X-Date: Sat, 16 May 1998 10:16:34 -0700 --> <!--X-Message-Id: 9805161611.8xh1@ami-cg.GraySage.Edmonton.AB.CA --> <!--X-Content-Type: text --> <!--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: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> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00630.html">Previous</a> | <a href="msg00633.html">Next</a> ] Thread: [ <a href="msg00681.html">Previous</a> | <a href="msg00638.html">Next</a> ] Index: [ <A HREF="author.html#00632">Author</A> | <A HREF="#00632">Date</A> | <A HREF="thread.html#00632">Thread</A> ] <!--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>: <A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A> (Chris Gray)</LI> <LI><em>Date</em>: Sat, 16 May 98 09:11:28 MST</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" <<A HREF="mailto:petidomo#kanga,nu">petidomo#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> [Vadim Tkachenko:] :Test algorithm: : :record the time; :fire the thread; :wait until it's started; :record the interval between the creation time and this moment; :wait 100 ms; :fire another; :perform something in the current thread. :P2/300, 128M running Linux & JDK 1.1.3 - no significant impact on other :programs, except load very close to 1 (for obvious reasons) I'm finally approaching that, except only 64M - am I likely to need more? What happens if your delay is increased from 100ms to, say, 1s? (Other than the experiment taking a lot more real-time.) I guess I'm wondering just what is consuming the time - is it the JVM flapping around with 3400 threads, or is it a lot of allocs and frees that are consuming the time? If the objects for the threads are as simple as possible, doing an absolute minimum of allocations/deallocations, how do the numbers change? How expensive is the "perform something in the current thread"? -- Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA -- MUD-Dev: Advancing an unrealised future. </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="00640" HREF="msg00640.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong> <ul compact><li><em>From:</em> Vadim Tkachenko <vt#freehold,crocodile.org></li></ul> <li><strong><A NAME="00638" HREF="msg00638.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong> <ul compact><li><em>From:</em> Vadim Tkachenko <vt#freehold,crocodile.org></li></ul> </UL></LI></UL> <!--X-Follow-Ups-End--> <!--X-References--> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00630.html">[MUD-Dev] Re: OT: Java multithreading performance</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00633.html">[MUD-Dev] Re: world concept</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00681.html">[MUD-Dev] Re: Combat Was Re: Leaving characters in play</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00638.html">[MUD-Dev] Re: OT: Java multithreading performance</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00632"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00632"><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="00678" HREF="msg00678.html">[MUD-Dev] Re: Combat Was Re: Leaving characters in play</A></strong>, Orion Henry <a href="mailto:orionZ#ix,netcom.com">orionZ#ix,netcom.com</a>, Tue 19 May 1998, 01:08 GMT </LI> <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><Possible follow-up(s)><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> </UL> </LI> </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>