<!-- MHonArc v2.4.4 --> <!--X-Subject: [MUD-Dev] Re: async i/o and threads (was: Re: lurker emerges --> <!--X-From-R13: "Xba O. Znzoreg" <wyflfvapNvk.argpbz.pbz> --> <!--X-Date: Mon, 10 Aug 1998 20:56:15 -0700 --> <!--X-Message-Id: 199808110355.WAA12581@dfw-ix9.ix.netcom.com --> <!--X-Content-Type: text/plain --> <!--X-Reference: 001001bdc4d0$f9661360$961e5d18#default,rochester.rr.com --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, [MUD-Dev] Re: async i/o and threads (was: Re: lurker emerges</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:jlsysinc#ix,netcom.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="msg00649.html">Previous</a> | <a href="msg00651.html">Next</a> ] Thread: [ <a href="msg00646.html">Previous</a> | <a href="msg00639.html">Next</a> ] Index: [ <A HREF="author.html#00650">Author</A> | <A HREF="#00650">Date</A> | <A HREF="thread.html#00650">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>[MUD-Dev] Re: async i/o and threads (was: Re: lurker emerges</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>: [MUD-Dev] Re: async i/o and threads (was: Re: lurker emerges</LI> <LI><em>From</em>: "Jon A. Lambert" <<A HREF="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</A>></LI> <LI><em>Date</em>: Mon, 10 Aug 1998 23:56:18 -5</LI> <LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#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> On 10 Aug 98, James Wilson wrote: > Thanks for the reference. I read it a couple of days ago when I was poking > through the archive, but it's more useful to me now after the recent > discussions. > Portability question: does the select() available with the mingw32 system > (which > might come straight out of winsock, I don't know) have any gotchas? I can > get about 20-30 connections accepted per second, with the client on the > local > machine; that seems plenty fast to me. > What is the mingw32 system? > The reason I'm paranoid about the amount of time spent in processing is user > scripts; I'm sure I can't trust people not to write inefficient or > infinite-looping code, > and it'd sure be nice to have the latter locked away in a thread so they > don't > prevent others from logging in (or me from killing the runaway). I'm not > sure how > this could be accomplished cleanly in a single thread. Also, if one uses a > disk-based > system, 'zone faults' would seem to be a great thing to put in a thread > separate > from the socket i/o thread. > > I'm a bit concerned about the overhead of using a thread pool, though, since > my two > target platforms (win32 and linux) use heavyweight threads. Has anyone tried > a bytecode vm that implements user-level threads, setting up a scheduler > that timeslices between 'processes', switches context on blocking i/o, and > so on? Maybe this could give you lightweight, portable threading while > keeping the whole process in a single thread? I'm imagining something where > the main thread is either chomping bytecode or checking for io-ready > sockets. > Aye . I believe MUQ does exactly this. Many of the programable servers impose execution limits on internal tasks (i.e. Cold, LP) -- --/*\ Jon A. Lambert - TychoMUD Internet:jlsysinc#ix,netcom.com /*\-- --/*\ Mud Server Developer's Page <<A HREF="http://www.netcom.com/~jlsysinc">http://www.netcom.com/~jlsysinc</A>> /*\-- --/*\ "Everything that deceives may be said to enchant" - Plato /*\-- </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <!--X-Follow-Ups-End--> <!--X-References--> <UL><LI><STRONG>References</STRONG>: <UL> <LI><STRONG><A NAME="00646" HREF="msg00646.html">[MUD-Dev] Re: async i/o and threads (was: Re: lurker emerges)</A></STRONG> <UL><LI><EM>From:</EM> "James Wilson" <jwilson#rochester,rr.com></LI></UL></LI> </UL></LI></UL> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00649.html">[MUD-Dev] Re: lurker emerges</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00651.html">[MUD-Dev] Re: async i/o and threads (was: Re: lurker emerges</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00646.html">[MUD-Dev] Re: async i/o and threads (was: Re: lurker emerges)</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00639.html">[MUD-Dev] Re: META: List combat character and racial memory (was Re: Affordances and social method (Was: Re: Wire d Magazine...))</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00650"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00650"><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>[MUD-Dev] Re: clients anyone?...</STRONG>, <EM>(continued)</EM> <ul compact> <ul compact> <LI><strong><A NAME="01081" HREF="msg01081.html">[MUD-Dev] Re: clients anyone?...</A></strong>, Andrew Wilson <a href="mailto:andrew#aaaaaaaa,demon.co.uk">andrew#aaaaaaaa,demon.co.uk</a>, Sun 20 Sep 1998, 00:58 GMT </LI> </ul> </ul> </LI> <LI><strong><A NAME="00651" HREF="msg00651.html">[MUD-Dev] Re: async i/o and threads (was: Re: lurker emerges</A></strong>, James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Tue 11 Aug 1998, 04:20 GMT <UL> <LI><strong><A NAME="00655" HREF="msg00655.html">[MUD-Dev] Re: async i/o and threads (was: Re: lurker emerges</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Tue 11 Aug 1998, 06:58 GMT </LI> </UL> </LI> <LI><strong><A NAME="00646" HREF="msg00646.html">[MUD-Dev] Re: async i/o and threads (was: Re: lurker emerges)</A></strong>, James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Tue 11 Aug 1998, 02:44 GMT <UL> <LI><strong><A NAME="00650" HREF="msg00650.html">[MUD-Dev] Re: async i/o and threads (was: Re: lurker emerges</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Tue 11 Aug 1998, 03:56 GMT </LI> </UL> </LI> <LI><strong><A NAME="00639" HREF="msg00639.html">[MUD-Dev] Re: META: List combat character and racial memory (was Re: Affordances and social method (Was: Re: Wire d Magazine...))</A></strong>, kamikaze <a href="mailto:kamikaze#kuoi,asui.uidaho.edu">kamikaze#kuoi,asui.uidaho.edu</a>, Mon 10 Aug 1998, 20:50 GMT <UL> <LI><strong><A NAME="01057" HREF="msg01057.html">[MUD-Dev] Re: META: List combat character and racial memory (was Re: Affordances and social method (Was: Re: Wire d Magazine...))</A></strong>, J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Thu 17 Sep 1998, 01:07 GMT </LI> </UL> <UL> <li><Possible follow-up(s)><br> <LI><strong><A NAME="00645" HREF="msg00645.html">[MUD-Dev] Re: META: List combat character and racial memory (was Re: Affordances and social method (Was: Re: Wire d Magazine...))</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 11 Aug 1998, 02:40 GMT </LI> </UL> </LI> <LI><strong><A NAME="00634" HREF="msg00634.html">[MUD-Dev] Rule #3</A></strong>, S. Patrick Gallaty <a href="mailto:patrick#gric,com">patrick#gric,com</a>, Mon 10 Aug 1998, 17:27 GMT </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>