1998Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev]  CORBA, RMI, threads -->
<!--X-From-R13: [nep Slevtabhk <[nep.SlevtabhkNrserv.se> -->
<!--X-Date: Fri, 23 Jan 1998 11:30:58 +0000 -->
<!--X-Message-Id: 34C87F67.41C67EA6#efrei,fr -->
<!--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-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev]  CORBA, RMI, threads</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:Marc.Eyrignoux#efrei,fr">
</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="msg00292.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00294.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00208.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00294.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00293">Author</A>
&nbsp;|&nbsp;<A HREF="#00293">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00293">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[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>: [MUD-Dev]  CORBA, RMI, threads</LI>
<LI><em>From</em>: Marc Eyrignoux &lt;<A HREF="mailto:Marc.Eyrignoux#efrei,fr">Marc.Eyrignoux#efrei,fr</A>&gt;</LI>
<LI><em>Date</em>: Fri, 23 Jan 1998 12:30:47 +0100</LI>
<LI><em>Sender</em>: <A HREF="mailto:eyrignou#efrei,fr">eyrignou#efrei,fr</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
Hello
I apologize for not saying very much on the list, but I don't think I
would
be helpful for anybody.
I have some questions that I couldn't solve by myself, even by rereading
all
the mails on the subject:
- If I chose to use CORBA or RMI for the communications between the
clients and
the serveur, I am afraid the generated traffic will be too important.
The aim is to
have efficient and quick communications, it doesn't matter for me if the
programing
is less easy.
- If I have a telnet client and a java serveur (or a java client and a
C++ serveur), 
is it possible to use RMI? I know CORBA is programed on both platforms.
- I intend to have a multi-threaded serveur, as the mails on the list
seemed to
prove it was the best way to program the evenemential part of the code.
So my projects
are:
* one thread per connection, for listening
* the use of a multi-threaded database like postgreSQL or mySQL, which
libraries are
already threaded
* a thread for the time (in my mud, 3mn_real_life=1h_mud_life)
* a mecanism based upon thread for the event handler.
So they are 3 points I would like to get clearer:
+ even if the functions given in the database library are multithreaded,
do I need to 
thread the functions that call them?
+ are NPCs threads in your servers? or is there something like
while (1)
{ 
	getTheListOfActiveMonsters();
	for (monster = firstMonster(); monster = lastMonster(); monster++)
		{ 
		monster.act();
		}
}
In the case monsters are threads, do you need to stock somewhere the
list of active monsters?
In this case, is there an accurate way of stocking them?
In fact, I intend to make the monsters act every 15 seconds. A thread
that would sleep for 15 
seconds and acts according to the situation at the moment it wakes up
seems to be a good way
for doing this. But I forget the case when the monster has to know
something that happened 
while it was sleeping. The question is: do I have to set in place a
mecanism that warns the monster,
or isn't it obliged? (in fact my question is: are monsters in your muds
intelligent or not?
have you programed that kind of things?)
+ I have read the structure of the event handler of people who explained
them.
In the case of an event queue, you stock the events in a structure
handled by a class.
But this class has to do something like
while (1)
{
	getTheMostUrgentEvents();
	executeEvent();
	rescheduleOtherEvents();
}
Isn't it a lost of cpu time compared to:
thread.sleep(n);
But in the case of totally threaded events, you have to create them,
stock them in order to interrupt 
them. 2 questions: is there a thread per possible event? is there a
generic class eventThread which
may contain any event? In this case, is there an accurate way of
programing it?
		   once again, is there an intelligent way of stocking threads? I
thing about a
hashtable which value would be the thread, but what would be the key?
Thanks in advance.

</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="00300" HREF="msg00300.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></strong>
<ul compact><li><em>From:</em> Nathan Yospe &lt;yospe#hawaii,edu&gt;</li></ul>
<li><strong><A NAME="00294" HREF="msg00294.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></strong>
<ul compact><li><em>From:</em> Vadim Tkachenko &lt;vadimt#4cs,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>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00292.html">Re: [MUD-Dev] The impact of the web on muds</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00294.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00208.html">Re: [MUD-Dev]  OT: DCOM and RMI</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00294.html">Re: [MUD-Dev]  CORBA, RMI, threads</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00293"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00293"><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>
<LI><strong><A NAME="00126" HREF="msg00126.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, 00:48 GMT
<UL>
<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
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</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>