1997Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: Threads, IO handling, and Event Queues -->
<!--X-From-R13: ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO (Quevf Uenl) -->
<!--X-Date: from tacitus.globecomm.net [207.51.48.7] by mx01.ca.us.ibm.net id 857663367.106293&#45;1 Thu Mar  6 15:49:27 1997 -->
<!--X-Message-Id: 9703061426.7urk@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: Threads, IO handling, and Event Queues</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>
[&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="msg00065.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00067.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00065.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00067.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00066">Author</A>
&nbsp;|&nbsp;<A HREF="#00066">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00066">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: Threads, IO handling, and Event Queues</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: Threads, IO handling, and Event Queues</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>: Thu, 6 Mar 97 07:26:20 MST</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
:In any case, I would be interested to see how the rest of you implemented
:event queues, multithreading, etc...

First, I'll comment about the goblin-fight and flee example. I don't like
computer games that ignore my commands. I think I mentioned this when
Chris L suggested something like it. One of the reasons why people play
computer games, I think, is because the player is in some ways in full
control. That will be lost if not all commands are executed, or if things
are not done in the way the player specified. I wouldn't be surprised if
some user's reacted very strongly to such things.

On to your question. As you probably already know, I don't really have
any of that stuff. I have a queue of timed code call-outs, which are
executed as soon after their indicated time as possible. That's it.

As for multi-threading, I would advocate understanding why you want to
use it, before you devote much time to it. A program with multiple
threads will run slower on a single-CPU computer than the equivalent
program without threads. If you truly are targetting speedups by running
on multiple CPU's, then fine. If not, then reorganizing your server into
threads had better produce some real improvements in maintainability,
etc., in order to offset the loss of speed.

Personally, I believe that moving in the direction of not only threads,
but multiple co-operating servers is important. Multi-player games will,
I think, only get bigger, so we will need extra power to run them. It
isn't going to be easy - that's why there really aren't any good
distributed MUD servers yet.

--
Chris Gray   cg#ami-cg,GraySage.Edmonton.AB.CA

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00065.html">Threads, IO handling, and Event Queues</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00067.html">Re: Threads, IO handling, and Event Queues</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00065.html">Threads, IO handling, and Event Queues</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00067.html">Re: Threads, IO handling, and Event Queues</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00066"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00066"><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 grammar (was Re: Just a bit of musing)</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00121" HREF="msg00121.html">Re: mud grammar (was Re: Just a bit of musing)</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 16 Mar 1997, 04:15 GMT
</LI>
<LI><strong><A NAME="00133" HREF="msg00133.html">Re: mud grammar (was Re: Just a bit of musing)</A></strong>, 
claw <a href="mailto:claw#null,net">claw#null,net</a>, Tue 18 Mar 1997, 02:30 GMT
</LI>
<LI><strong><A NAME="00135" HREF="msg00135.html">Re: mud grammar (was Re: Just a bit of musing)</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 18 Mar 1997, 23:50 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00065" HREF="msg00065.html">Threads, IO handling, and Event Queues</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Thu 06 Mar 1997, 10:10 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00066" HREF="msg00066.html">Re: Threads, IO handling, and Event Queues</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 06 Mar 1997, 23:49 GMT
</LI>
<LI><strong><A NAME="00067" HREF="msg00067.html">Re: Threads, IO handling, and Event Queues</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Sat 08 Mar 1997, 11:38 GMT
</LI>
<LI><strong><A NAME="00074" HREF="msg00074.html">Re: Threads, IO handling, and Event Queues</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Sat 08 Mar 1997, 11:54 GMT
</LI>
<LI><strong><A NAME="00075" HREF="msg00075.html">Re: Threads, IO handling, and Event Queues</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Sat 08 Mar 1997, 13:44 GMT
</LI>
<LI><strong><A NAME="00082" HREF="msg00082.html">Re: Threads, IO handling, and Event Queues</A></strong>, 
Carter T Shock <a href="mailto:ctso#umiacs,umd.edu">ctso#umiacs,umd.edu</a>, Mon 10 Mar 1997, 21:59 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>