1998Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  CORBA, RMI, threads -->
<!--X-From-R13: Hnqvz Fxnpuraxb <inqvzgN4pf.pbz> -->
<!--X-Date: Fri, 23 Jan 1998 15:39:27 +0000 -->
<!--X-Message-Id: 34C8B919.38FB650#4cs,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-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:vadimt#4cs,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="msg00293.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00297.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00293.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00307.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00294">Author</A>
&nbsp;|&nbsp;<A HREF="#00294">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00294">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>: Vadim Tkachenko &lt;<A HREF="mailto:vadimt#4cs,com">vadimt#4cs,com</A>&gt;</LI>
<LI><em>Date</em>: Fri, 23 Jan 1998 09:36:57 -0600</LI>
<LI><em>Sender</em>: <A HREF="mailto:vt#vadimt,4cs.com">vt#vadimt,4cs.com</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
Marc Eyrignoux wrote:

[skipped]

&gt; - If I have a telnet client and a java serveur (or a java client and a
&gt; C++ serveur), is it possible to use RMI?

Which kind of telnet do you mean? Pure bare telnet utility which is
ubiqitous in the every UNIX distribution and also in Windows (though,
forgive me for the expression, castrated) or the telnet protocol as
described in RFC854?

I'd say that you don't need neither RMI nor CORBA for both cases,
though...

&gt; * one thread per connection, for listening
&gt; * the use of a multi-threaded database like postgreSQL or mySQL, which
&gt; libraries are already threaded

And probably you also want to divide the system into independent
business logic (read: MUD) part and persistency (read: DB) part, this
way you don't have to care about multithreading within a DB driver.

&gt; * a thread for the time (in my mud, 3mn_real_life=1h_mud_life)
&gt; * a mecanism based upon thread for the event handler.
&gt; So they are 3 points I would like to get clearer:
&gt; + even if the functions given in the database library are multithreaded,
&gt; do I need to
&gt; thread the functions that call them?
&gt; + are NPCs threads in your servers?

Catching the chance, I'd like to throw the next flamebite:

NPC is a set of: ( &lt;behavior model&gt;,&lt;gathered knowledge&gt; ). Thus, it's
perfectly possible to divide the behavior model and move it out of the
main server. Then, when the NPC is needed, you just call the NPC
behavior model engine, load the knowledge base into that engine, and let
it continue.

&gt; or is there something like
&gt; while (1)
&gt; {
&gt;         getTheListOfActiveMonsters();
&gt;         for (monster = firstMonster(); monster = lastMonster(); monster++)
&gt;                 {
&gt;                 monster.act();
&gt;                 }
&gt; }

This mechanism I (personal opinion) detest as the least efficient. I'd
prefer them to wait the objects from the event queue and then process
them and fall back to sleep until next event.

&gt; In the case monsters are threads, do you need to stock somewhere the
&gt; list of active monsters?
&gt; In this case, is there an accurate way of stocking them?
&gt; In fact, I intend to make the monsters act every 15 seconds. A thread
&gt; that would sleep for 15
&gt; seconds and acts according to the situation at the moment it wakes up
&gt; seems to be a good way
&gt; for doing this.

Once again, why 15? Why not 14 or 16?

&gt; (in fact my question is: are monsters in your muds
&gt; intelligent or not?

Sure they are :-) Given the in-game experience, probably much smarter
the newbies :-)

-- 
Still alive and smile stays on,
Vadim Tkachenko &lt;VadimT#4CS,Com&gt;
--
UNIX _is_ user friendly, he's just very picky about who his friends are

</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="00307" HREF="msg00307.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></strong>
<ul compact><li><em>From:</em> Caliban Tiresias Darklock &lt;caliban#darklock,com&gt;</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>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00293.html">[MUD-Dev]  CORBA, RMI, threads</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00297.html">RE: [MUD-Dev]  Graphical mud perspectives</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00293.html">[MUD-Dev]  CORBA, RMI, threads</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00307.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00294"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00294"><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="00137" HREF="msg00137.html">Re: [MUD-Dev]  OT: DCOM and RMI</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#zesoi,fer.hr">silovic#zesoi,fer.hr</a>, Fri 09 Jan 1998, 12:00 GMT
</LI>
<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
</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>