<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: [MUD-Dev] Event handling (was: request for comments) --> <!--X-From-R13: XQ Znjerapr <pynjNhaqre.Sat.Eha.QA[> --> <!--X-Date: Sat, 10 Jan 1998 03:53:08 +0000 --> <!--X-Message-Id: 199801100353.TAA01190#under,Eng.Sun.COM --> <!--X-Content-Type: text/plain --> <!--X-Reference: 34B532D0.CB8CB4B2#4cs,com --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, Re: [MUD-Dev] Event handling (was: request for comments)</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:claw#under,Eng.Sun.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="msg00168.html">Previous</a> | <a href="msg00170.html">Next</a> ] Thread: [ <a href="msg00220.html">Previous</a> | <a href="msg00214.html">Next</a> ] Index: [ <A HREF="author.html#00169">Author</A> | <A HREF="#00169">Date</A> | <A HREF="thread.html#00169">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>Re: [MUD-Dev] Event handling (was: request for comments)</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: [MUD-Dev] Event handling (was: request for comments) </LI> <LI><em>From</em>: JC Lawrence <<A HREF="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</A>></LI> <LI><em>Date</em>: Fri, 09 Jan 1998 19:53:00 -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 Thu, 8 Jan 1998 23:15:05 PST8PDT Vadim Tkachenko<vadimt#4cs,com> wrote: > Well, in my model there are no limit on the number of threads, > usually the number will consist of: ... > - One thread per incoming connection Get say a few hundred or thousand simultaneous players (or bot's), and this alone will drag almost any current OS model to the floor, Linux encluded. FWLIW I use an asynchronous thread pool (again) to handle network IO. > - N > threads for db connections (implemented as a resource pool with > minSpare/maxSpare) I use (I think) a base set of 5 threads for the DB. Essentially they are service bnased threads, each thread supplying a basic service within teh DB, or to outside callers. Typically each thread controls an in-DB data structure which is private to that thread. After that everything is just simple message passing between threads (I don't do much call processing in the server, even in the internal language implementation its all message based). > Well, a while ago I've been told to implement a Web crawler for a > site, and the first thought was - just to go to the root URL, read > and parse it and as links appear, spawn other threads using the same > algorithm. > Obviously, you can parse the HTTP stream much faster than server > produces it, and, well, www.best.com (a guinea pig for that task) > started to fail when, say, something like 50th request thread was > started. Funny, but on my side (Linux, JDK 1.02) nothing bad > happened. Some HTTP servers have built-in throttles for the number of simultaneous connections they will accept from a given IP address. -- J C Lawrence Internet: claw#null,net Internet: coder#ibm,net ----------(*) Internet: jc.lawrence#sun,com ...Honourary Member of Clan McFud -- Teamer's Avenging Monolith... </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="00214" HREF="msg00214.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></strong> <ul compact><li><em>From:</em> Vadim Tkachenko <vadimt#4cs,com></li></ul> </UL></LI></UL> <!--X-Follow-Ups-End--> <!--X-References--> <UL><LI><STRONG>References</STRONG>: <UL> <LI><STRONG><A NAME="00122" HREF="msg00122.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></STRONG> <UL><LI><EM>From:</EM> Vadim Tkachenko <vadimt#4cs,com></LI></UL></LI> </UL></LI></UL> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00168.html">Re: [MUD-Dev] Commercial value of RP</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00170.html">Re: [MUD-Dev] Commercial value of RP</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00220.html">Event handling (was: request for comments)</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00214.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00169"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00169"><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] Event handling (was: request for comments)</STRONG>, <EM>(continued)</EM> <ul compact> <ul compact> <ul compact> <ul compact> <ul compact> <ul compact> <ul compact> <ul compact> <LI><strong><A NAME="00195" HREF="msg00195.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></strong>, JC Lawrence <a href="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</a>, Sun 11 Jan 1998, 20:44 GMT <UL> <LI><strong><A NAME="00207" HREF="msg00207.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></strong>, Matt Chatterley <a href="mailto:root#mpc,dyn.ml.org">root#mpc,dyn.ml.org</a>, Mon 12 Jan 1998, 10:02 GMT </LI> <LI><strong><A NAME="00210" HREF="msg00210.html">Event handling (was: request for comments)</A></strong>, s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Mon 12 Jan 1998, 15:13 GMT </LI> <LI><strong><A NAME="00220" HREF="msg00220.html">Event handling (was: request for comments)</A></strong>, s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Mon 12 Jan 1998, 22:12 GMT </LI> </UL> </LI> </ul> </ul> </ul> <LI><strong><A NAME="00169" HREF="msg00169.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></strong>, JC Lawrence <a href="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</a>, Sat 10 Jan 1998, 03:53 GMT <UL> <LI><strong><A NAME="00214" HREF="msg00214.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></strong>, Vadim Tkachenko <a href="mailto:vadimt#4cs,com">vadimt#4cs,com</a>, Mon 12 Jan 1998, 17:54 GMT </LI> </UL> </LI> </ul> <LI><strong><A NAME="00167" HREF="msg00167.html">Re: [MUD-Dev] request for comments (was: Mud-Dev FAQ)</A></strong>, JC Lawrence <a href="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</a>, Sat 10 Jan 1998, 03:38 GMT <UL> <LI><strong><A NAME="00211" HREF="msg00211.html">Re: [MUD-Dev] request for comments (was: Mud-Dev FAQ)</A></strong>, Vadim Tkachenko <a href="mailto:vadimt#4cs,com">vadimt#4cs,com</a>, Mon 12 Jan 1998, 16:30 GMT </LI> </UL> </LI> </ul> </ul> <LI><strong><A NAME="00077" HREF="msg00077.html">Re: [MUD-Dev] Mud-Dev FAQ</A></strong>, JC Lawrence <a href="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</a>, Wed 07 Jan 1998, 00:39 GMT </LI> </ul> </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>