<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: Threads, IO handling, and Event Queues --> <!--X-From-R13: pynjNahyy.arg --> <!--X-Date: from babe.globecomm.net [207.51.48.8] by mx3.ibm.net id 858382887.93494-1 Fri Mar 14 23:41:27 1997 --> <!--X-Message-Id: 3329dcaa2167002#msgSFO01,schwab.com --> <!--X-Content-Type: text/plain --> <!--X-Reference: 199703101402.OAA16691#out2,ibm.net --> <!--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:claw#null,net"> </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="msg00112.html">Previous</a> | <a href="msg00114.html">Next</a> ] Thread: [ <a href="msg00084.html">Previous</a> | <a href="msg00053.html">Next</a> ] Index: [ <A HREF="author.html#00113">Author</A> | <A HREF="#00113">Date</A> | <A HREF="thread.html#00113">Thread</A> ] <!--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:claw#null,net">claw#null,net</A></LI> <LI><em>Date</em>: Fri, 14 Mar 97 15:08:53 -0800</LI> <LI><em>Reply-to</em>: <A HREF="mailto:claw#null,net">claw#null,net</A></LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> On 10/03/97 at 08:53 AM, "Carter T Shock" <ctso#umiacs,umd.edu> said: >I agree that multi-threading is not an issue to be taken lightly. I'd >suggest that it only applies to the mud if you want to run different >hunks of your world asynchronously. You could run different regions as >seperate threads, unloading the threads when the region is devoid of >players to reduce load. You could also run with each user as a seperate >thread, but I wouldn't recommend it. Or, you could take my approach: an event driven server where events are transactions and compete simultaneously for compleation. >One of the things I like about SillyMUD is the catastrophe code. The >goblin raid on a town, the dwarf miner's revolt, etc. No reason you can't >code up these "events" as a seperate process that runs, attaches to the >mud, loads and tracks the appropriate critters, plays out its scenario >and then cleans up after itself. Which is based on the premise that having an unused area defined or otherwise "in the system" is wastefully resource consumptive, and doesn't make a lot of sense to me. Start with an event driven server and 90% of this logic disappears. Move from an in-memory image to on disk with decent cacheing and the rest goes too. Instead we are saddled with iterative, polling, looping servers that spend most of their time either doing things that aren't needed, or hoping to hell that the system loop time is not so long that user performance goes thru the floor (cf LambdaMOO). >In essence, if you design well, you >should be able to dynamically modify what's going on in your world >without having to reboot. Err, you write the above as if it were a "new thing". The Tiny-* world has been doing exactly this for years -- massively runtime modified and defined worlds. -- J C Lawrence Internet: coder#null,net ----------(*) Internet: coder#ibm,net ...Honourary Member of Clan McFud -- Teamer's Avenging Monolith... </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="msg00112.html">mud grammar (was Re: Just a bit of musing)</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00114.html">Re: Just a bit of musing</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00084.html">Re: Threads, IO handling, and Event Queues</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00053.html">ListMail dupes</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00113"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00113"><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: Threads, IO handling, and Event Queues</STRONG>, <EM>(continued)</EM> <ul compact> <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> <LI><strong><A NAME="00084" HREF="msg00084.html">Re: Threads, IO handling, and Event Queues</A></strong>, Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Tue 11 Mar 1997, 03:09 GMT </LI> <LI><strong><A NAME="00113" HREF="msg00113.html">Re: Threads, IO handling, and Event Queues</A></strong>, claw <a href="mailto:claw#null,net">claw#null,net</a>, Sat 15 Mar 1997, 07:41 GMT </LI> </ul> </LI> <LI><strong><A NAME="00053" HREF="msg00053.html">ListMail dupes</A></strong>, coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Wed 05 Mar 1997, 14:38 GMT <LI><strong><A NAME="00044" HREF="msg00044.html">Issues from the digests and Wout's list</A></strong>, Alex Oren <a href="mailto:alexo#europa,com">alexo#europa,com</a>, Mon 03 Mar 1997, 20:08 GMT <UL> <LI><strong><A NAME="00047" HREF="msg00047.html">Re: Issues from the digests and Wout's list</A></strong>, coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Tue 04 Mar 1997, 13:29 GMT </LI> </UL> <UL> <li><Possible follow-up(s)><br> <LI><strong><A NAME="00148" HREF="msg00148.html">Re: Issues from the digests and Wout's list</A></strong>, coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Thu 20 Mar 1997, 13:05 GMT </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>