1998Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  CORBA, RMI, threads -->
<!--X-From-R13: Qnyvona Fverfvnf Rnexybpx <pnyvonaNqnexybpx.pbz> -->
<!--X-Date: Sun, 25 Jan 1998 03:32:02 +0000 -->
<!--X-Message-Id: 34CAB24A.82512846#darklock,com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199801080614.AAA04706@dfw&#45;ix6.ix.netcom.com -->
<!--X-Reference: 34B57360.5207D4BD#4cs,com -->
<!--X-Reference: 34ba01fb.80498761@neptune -->
<!--X-Reference: 34C87F67.41C67EA6#efrei,fr -->
<!--X-Reference: 34C8B919.38FB650#4cs,com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev]  CORBA, RMI, threads</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:caliban#darklock,com">
</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="msg00306.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00308.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00294.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00443.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00307">Author</A>
&nbsp;|&nbsp;<A HREF="#00307">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00307">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]  CORBA, RMI, threads</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev]  CORBA, RMI, threads</LI>
<LI><em>From</em>: Caliban Tiresias Darklock &lt;<A HREF="mailto:caliban#darklock,com">caliban#darklock,com</A>&gt;</LI>
<LI><em>Date</em>: Sat, 24 Jan 1998 22:32:26 -0500</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 wrote:

&gt; Marc Eyrignoux wrote:
&gt;
&gt; &gt; In fact, I intend to make the monsters act every 15 seconds. A thread
&gt; &gt; that would sleep for 15
&gt; &gt; seconds and acts according to the situation at the moment it wakes up
&gt; &gt; seems to be a good way
&gt; &gt; for doing this.
&gt;
&gt; Once again, why 15? Why not 14 or 16?

12 | (&lt;unique object reference number&gt; &amp; 3) would work. Give the appearance of
randomness and 1-second resolution, without bogging the CPU by using all the
threads at once. Using appropriate bit shifting and arbitrary fragments of
statistics and whatnot, you can do a really fast calculation that would change
over time and keep things separated a good deal. Sure, you might end up with a
pathological case, but that would be rare and it wouldn't be any worse than
scheduling all the threads at once.

There are, of course, much more efficient methods that could be pulled up by
people who are much more experienced in this sort of programming than I am.
Hell, I'm from a single-process single-task world, and I'm only just getting out
of this crap where all I get to do is run networks... now that I'm back to
writing code again, I should get a good background in this stuff over the next
couple of months.

--
=+[caliban#darklock,com]=+=+=+=+=+=+=+=+=+=+=[<A  HREF="http://www.darklock.com/]+=">http://www.darklock.com/]+=</A>
"It must be remembered that there is nothing more difficult to plan, more
doubtful of success, nor more dangerous to manage than the creation of a
new system. For the initiator has the enmity of all who would profit by
the preservation of the old institution, and merely lukewarm defenders in
those who would gain by the new one."                      -- Machiavelli
=+=+=+[We are the music makers and we are the dreamers of dreams]+=+=+=+=



</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="00443" HREF="msg00443.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></strong>
<ul compact><li><em>From:</em> coder#ibm,net</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00109" HREF="msg00109.html">OT: DCOM and RMI</A></STRONG>
<UL><LI><EM>From:</EM> "Jon A. Lambert" &lt;jlsysinc#ix,netcom.com&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00126" HREF="msg00126.html">Re: [MUD-Dev]  OT: DCOM and RMI</A></STRONG>
<UL><LI><EM>From:</EM> Vadim Tkachenko &lt;vadimt#4cs,com&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00208" HREF="msg00208.html">Re: [MUD-Dev]  OT: DCOM and RMI</A></STRONG>
<UL><LI><EM>From:</EM> alexo#bigfoot,com (Alex Oren)</LI></UL></LI>
<LI><STRONG><A NAME="00293" HREF="msg00293.html">[MUD-Dev]  CORBA, RMI, threads</A></STRONG>
<UL><LI><EM>From:</EM> Marc Eyrignoux &lt;Marc.Eyrignoux#efrei,fr&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00294" HREF="msg00294.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></STRONG>
<UL><LI><EM>From:</EM> Vadim Tkachenko &lt;vadimt#4cs,com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00306.html">Re: [MUD-Dev] OT: Socket programming - platform specific</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00308.html">Re: [MUD-Dev] Clients based on Netscape 5?</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00294.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00443.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00307"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00307"><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>Re: [MUD-Dev]  OT: DCOM and RMI</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00142" HREF="msg00142.html">Re: [MUD-Dev]  OT: DCOM and RMI</A></strong>, 
Vadim Tkachenko <a href="mailto:vadimt#4cs,com">vadimt#4cs,com</a>, Fri 09 Jan 1998, 17:08 GMT
</LI>
<LI><strong><A NAME="00208" HREF="msg00208.html">Re: [MUD-Dev]  OT: DCOM and RMI</A></strong>, 
Alex Oren <a href="mailto:alexo#bigfoot,com">alexo#bigfoot,com</a>, Mon 12 Jan 1998, 13:02 GMT
<UL>
<LI><strong><A NAME="00293" HREF="msg00293.html">[MUD-Dev]  CORBA, RMI, threads</A></strong>, 
Marc Eyrignoux <a href="mailto:Marc.Eyrignoux#efrei,fr">Marc.Eyrignoux#efrei,fr</a>, Fri 23 Jan 1998, 11:30 GMT
<UL>
<LI><strong><A NAME="00294" HREF="msg00294.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></strong>, 
Vadim Tkachenko <a href="mailto:vadimt#4cs,com">vadimt#4cs,com</a>, Fri 23 Jan 1998, 15:39 GMT
<UL>
<LI><strong><A NAME="00307" HREF="msg00307.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Sun 25 Jan 1998, 03:32 GMT
<UL>
<LI><strong><A NAME="00443" HREF="msg00443.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Thu 12 Feb 1998, 22:22 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00300" HREF="msg00300.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Fri 23 Jan 1998, 18:58 GMT
<UL>
<LI><strong><A NAME="00323" HREF="msg00323.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></strong>, 
Marc Eyrignoux <a href="mailto:Marc.Eyrignoux#efrei,fr">Marc.Eyrignoux#efrei,fr</a>, Mon 26 Jan 1998, 16:40 GMT
<UL>
<LI><strong><A NAME="00324" HREF="msg00324.html">CORBA, RMI, threads</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Mon 26 Jan 1998, 20:37 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</ul>
</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>