msg00129.html

2000Q1/msg00129.html · 8.5 KB

From the archive 2000Q1.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: RE: [MUD&#45;Dev] Question about multithreaded servers -->
<!--X-From-R13: "Tnovna" <yrzxrsNrkrpcp.pbz> -->
<!--X-Date: Tue, 18 Jan 2000 12:51:09 &#45;0800 -->
<!--X-Message-Id: NDBBLLHLIKFBKFLMGIPFIECOCCAA.lemkef#execpc,com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 003c01bf609e$bd4cf5e0$020101df@JonLambert -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, RE: [MUD-Dev] Question about multithreaded servers</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:lemkef#execpc,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="msg00131.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00130.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00103.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00147.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00129">Author</A>
&nbsp;|&nbsp;<A HREF="#00129">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00129">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>RE: [MUD-Dev] Question about multithreaded servers</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: &lt;<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>&gt;</LI>
<LI><em>Subject</em>: RE: [MUD-Dev] Question about multithreaded servers</LI>
<LI><em>From</em>: "Fabian" &lt;<A HREF="mailto:lemkef#execpc,com">lemkef#execpc,com</A>&gt;</LI>
<LI><em>Date</em>: Tue, 18 Jan 2000 08:34:46 -0600</LI>
<LI><em>Importance</em>: Normal</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#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>

&gt; -----Original Message-----
&gt; From: Jon A. Lambert [<A  HREF="mailto:jlsysinc#ix,netcom.com">mailto:jlsysinc#ix,netcom.com</A>]
&gt;
&gt; Fabian wrote:
&gt; &gt;
&gt; &gt;I wasn't planning on having a fully transactional-based system, or
&gt; &gt;otherwise, that is surely the most attractive and elegant approach.  I may
&gt; &gt;just have to cut that ability out, or find a way to reorganize it where it
&gt; &gt;will fail gracefully if a lock attempt times-out.  I suppose just by making
&gt; &gt;a simple requirement that all objects must be secured at the begining of the
&gt; &gt;script would take care of that.
&gt;
&gt; Not a simple requirement though.  How about this sort of script construct:
&gt;
&gt; for player in connected
&gt;    player.message("How about some spam!?!")
&gt; endfor
&gt;
&gt; Do you lock every player object in the connected list?
&gt; Would the above method be an atomic transaction requiring
&gt; completion of all events it would generate?
&gt; Or would you spawn a new event to each player object,
&gt; and not worry about completion thus making the method
&gt; above non-atomic?

Ah!  This I've thought of!  This just won't be possible :)
I think I'm going to require something like "Player = GetPlayer(id)", so the script can
only get things it knows about.  It won't need this for most things however - any actions
it does will automatically generate events, which will be distributed to the mobs that can
see it/care for it.
Something to still think about though.. this would be a difficult problem to fix if it
doesn't meet my needs and is already coded.

&gt; And what about guaranteeing event sequence?
&gt;
&gt; for player in connected
&gt;    player.message("LINE 1")
&gt;    player.message("LINE 2")
&gt;    player.message("LINE 3")
&gt; endfor
&gt;
&gt; Perhaps when sending "LINE 1" the lock cannot be achieved and
&gt; is rescheduled or terminated.  So the Player receives:
&gt;
&gt; "LINE 2"
&gt; "LINE 3"
&gt; "LINE 1"
&gt;
&gt; Just a few things to think about.  :)

The scripting engine I'm using is re-entrant.. so that may be a way around it.. otherwise
I think the current method (of event-passing) will work OK.. I'll have to think about this
more to be sure..

- Fabian





_______________________________________________
MUD-Dev maillist  -  MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>

</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="00147" HREF="msg00147.html">RE: [MUD-Dev] Question about multithreaded servers</A></strong>
<ul compact><li><em>From:</em> Greg Underwood &lt;gunderwood#donet,com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00103" HREF="msg00103.html">Re: [MUD-Dev] Question about multithreaded servers</A></STRONG>
<UL><LI><EM>From:</EM> "Jon A. Lambert" &lt;jlsysinc#ix,netcom.com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00131.html">Re: [MUD-Dev] Community Relations</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00130.html">Re: [MUD-Dev] Community Relations</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00103.html">Re: [MUD-Dev] Question about multithreaded servers</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00147.html">RE: [MUD-Dev] Question about multithreaded servers</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00129"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00129"><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] Question about multithreaded servers</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00094" HREF="msg00094.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Sun 16 Jan 2000, 01:56 GMT
<UL>
<LI><strong><A NAME="00101" HREF="msg00101.html">RE: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Fabian <a href="mailto:lemkef#execpc,com">lemkef#execpc,com</a>, Sun 16 Jan 2000, 19:12 GMT
<UL>
<LI><strong><A NAME="00243" HREF="msg00243.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Sun 30 Jan 2000, 21:27 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
<LI><strong><A NAME="00103" HREF="msg00103.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 17 Jan 2000, 09:02 GMT
<UL>
<LI><strong><A NAME="00129" HREF="msg00129.html">RE: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Fabian <a href="mailto:lemkef#execpc,com">lemkef#execpc,com</a>, Tue 18 Jan 2000, 20:51 GMT
<UL>
<LI><strong><A NAME="00147" HREF="msg00147.html">RE: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Greg Underwood <a href="mailto:gunderwood#donet,com">gunderwood#donet,com</a>, Wed 19 Jan 2000, 04:32 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00149" HREF="msg00149.html">RE: [MUD-Dev] Question about multithreaded servers</A></strong>, 
cg <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 19 Jan 2000, 05:33 GMT
<UL>
<LI><strong><A NAME="00151" HREF="msg00151.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Wed 19 Jan 2000, 05:48 GMT
<UL>
<LI><strong><A NAME="00178" HREF="msg00178.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Greg Underwood <a href="mailto:gunderwood#donet,com">gunderwood#donet,com</a>, Thu 20 Jan 2000, 05:59 GMT
</LI>
</UL>
</LI>
</UL>
</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>

Site Stats

Snippets: 1791
Codebases: 571