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-Dev] Question about multithreaded servers -->
<!--X-From-R13: "Tnovna" <yrzxrsNrkrpcp.pbz> -->
<!--X-Date: Tue, 18 Jan 2000 12:51:09 -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>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->
Date:
[ <a href="msg00131.html">Previous</a>
| <a href="msg00130.html">Next</a>
]
Thread:
[ <a href="msg00103.html">Previous</a>
| <a href="msg00147.html">Next</a>
]
Index:
[ <A HREF="author.html#00129">Author</A>
| <A HREF="#00129">Date</A>
| <A HREF="thread.html#00129">Thread</A>
]
<!--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>: <<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>></LI>
<LI><em>Subject</em>: RE: [MUD-Dev] Question about multithreaded servers</LI>
<LI><em>From</em>: "Fabian" <<A HREF="mailto:lemkef#execpc,com">lemkef#execpc,com</A>></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>
> -----Original Message-----
> From: Jon A. Lambert [<A HREF="mailto:jlsysinc#ix,netcom.com">mailto:jlsysinc#ix,netcom.com</A>]
>
> Fabian wrote:
> >
> >I wasn't planning on having a fully transactional-based system, or
> >otherwise, that is surely the most attractive and elegant approach. I may
> >just have to cut that ability out, or find a way to reorganize it where it
> >will fail gracefully if a lock attempt times-out. I suppose just by making
> >a simple requirement that all objects must be secured at the begining of the
> >script would take care of that.
>
> Not a simple requirement though. How about this sort of script construct:
>
> for player in connected
> player.message("How about some spam!?!")
> endfor
>
> Do you lock every player object in the connected list?
> Would the above method be an atomic transaction requiring
> completion of all events it would generate?
> Or would you spawn a new event to each player object,
> and not worry about completion thus making the method
> 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.
> And what about guaranteeing event sequence?
>
> for player in connected
> player.message("LINE 1")
> player.message("LINE 2")
> player.message("LINE 3")
> endfor
>
> Perhaps when sending "LINE 1" the lock cannot be achieved and
> is rescheduled or terminated. So the Player receives:
>
> "LINE 2"
> "LINE 3"
> "LINE 1"
>
> 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 <gunderwood#donet,com></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" <jlsysinc#ix,netcom.com></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>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
</center>
<hr>
</body>
</html>