1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] RE: Question regarding Java threads -->
<!--X-From-R13: [ngg Qunggreyrl <znggNzcp.qla.zy.bet> -->
<!--X-Date: Mon, 10 Aug 1998 03:42:32 &#45;0700 -->
<!--X-Message-Id: XFMail.980810114102.matt#mpc,dyn.ml.org -->
<!--X-Content-Type: multipart/signed -->
<!--X-Reference: 199808060322.WAA19343@dfw&#45;ix3.ix.netcom.com -->
<!--X-Derived: pgp00000.pgp -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] RE: Question regarding Java threads</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:matt#mpc,dyn.ml.org">
</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="msg00621.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00623.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00527.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00644.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00622">Author</A>
&nbsp;|&nbsp;<A HREF="#00622">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00622">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] RE: Question regarding Java threads</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: Question regarding Java threads</LI>
<LI><em>From</em>: Matt Chatterley &lt;<A HREF="mailto:matt#mpc,dyn.ml.org">matt#mpc,dyn.ml.org</A>&gt;</LI>
<LI><em>Date</em>: Mon, 10 Aug 1998 11:41:02 -0000 (GMT)</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 05-Aug-98 Jon A. Lambert wrote:
&gt; A bit back we we discussing the upper limits of Java threads on 
&gt; various platforms.   Much of the concern, especially in regard to 
&gt; Java, was the one thread per connection issue.  Can anyone comment on 
&gt; the following hardware(?) issue raised here? 
&gt; 
&gt; --cut from rgma --
&gt; 
&gt; By the way, your P2-233 will choke with 200 active users.  Interrupt
&gt; overflow from the NIC.  You could solve this problem with a $500 NIC
&gt; that doesn't interrupt the CPU as much(has its own processor,) but
&gt; then you'll have to ban char mode telnet outright and do some other
&gt; unfriendly things too, and I just don't know that you're going to find
&gt; 200 simultaneous players anyway; few muds do, so unless you become one
&gt; of them, it isn't worth the time, money, and effort to prepare for:)

Well, ignoring the 'record' of the original writer, and attempting to be
unbiased - I'd put this in the 'partially correct' bin. I suspect a P2-233
*would* have trouble with 200 active users, running a reasonably complex (read:
CPU intensive) game. Interrupt overflow? Not a very clear term, but if in
relation to interrupt from network activity itself, I've seen 30-40 users on a
14.4k modem, on a p90, with no trouble *at all*. No lag, unless the host did
something like transfer files via FTP, or surf the web.

Most Muds *do not allow* character mode telnet anyway - its a very evil thing
(its also quite crap if your connection to the net is low bandwidth/latency,
because it takes about as long per letter as it does per normal line - not
quite, but near as damn it). I don't intend to support this personally, at any
point.

Assume that each of these 200 users enters one command per second
(overestimate, but in doing so, we allow for the times that clients send
multiple commands very rapidly). Thats 200 commands per seconds (ironically,
200 HZ, if you think about it). In order for the machine to keep up (assuming
it is a UP box, and the Mud runs UP), it needs to get through each command in
the time in 1/200th of a second? Something like that (not quite awake). Of
course, this leaves you with a huge amount of information 'hanging around' in
buffers from sockets, and so on - go with some sort of event queue model, using
a clump of threads (one per 20 users, or so forth), and you can manage this
just fine.

Java specifically? According to the work done here (Vadim's?), and some stuff i
read in one of the online magazines (I've forgotten which; it was a while ago),
all the current JDKs can support ~500 sockets with comfort, some can go far
beyond. I wouldn't worry about anything except having enough *actual computing
power* (and possibly available memory).


---
        -Matt Chatterley
        <A  HREF="http://user.itl.net/~neddy/">http://user.itl.net/~neddy/</A>
"You may say I'm a dreamer, but I'm not the only one.." -John Lennon (Imagine)
</PRE>
<P><A HREF="pgp00000.pgp" >PGP signature</A></P>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00644" HREF="msg00644.html">[MUD-Dev] Re: Question regarding Java threads</A></strong>
<ul compact><li><em>From:</em> Ben Greear &lt;greear#cyberhighway,net&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00509" HREF="msg00509.html">[MUD-Dev] Question regarding Java threads</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="msg00621.html">[MUD-Dev] Re: ADMIN: Advertising on MUD-Dev</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00623.html">[MUD-Dev] Re: [IDEAS] Starting from scratch</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00527.html">[MUD-Dev] Re: Question regarding Java threads</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00644.html">[MUD-Dev] Re: Question regarding Java threads</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00622"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00622"><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><A NAME="00509" HREF="msg00509.html">[MUD-Dev] Question regarding Java threads</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Thu 06 Aug 1998, 03:26 GMT
<UL>
<LI><strong><A NAME="00513" HREF="msg00513.html">[MUD-Dev] Re: Question regarding Java threads</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Thu 06 Aug 1998, 06:01 GMT
<UL>
<LI><strong><A NAME="00535" HREF="msg00535.html">[MUD-Dev] Re: Question regarding Java threads</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Fri 07 Aug 1998, 04:53 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00527" HREF="msg00527.html">[MUD-Dev] Re: Question regarding Java threads</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Thu 06 Aug 1998, 17:11 GMT
</LI>
<LI><strong><A NAME="00622" HREF="msg00622.html">[MUD-Dev] RE: Question regarding Java threads</A></strong>, 
Matt Chatterley <a href="mailto:matt#mpc,dyn.ml.org">matt#mpc,dyn.ml.org</a>, Mon 10 Aug 1998, 10:42 GMT
<UL>
<LI><strong><A NAME="00644" HREF="msg00644.html">[MUD-Dev] Re: Question regarding Java threads</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Tue 11 Aug 1998, 02:39 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00508" HREF="msg00508.html">[MUD-Dev] RE: [IDEAS] Starting from scratch</A></strong>, 
Leach, Brad BA <a href="mailto:Leach.Brad.BA#bhp,com.au">Leach.Brad.BA#bhp,com.au</a>, Thu 06 Aug 1998, 02:40 GMT
<UL>
<LI><strong><A NAME="00515" HREF="msg00515.html">[MUD-Dev] Re: [IDEAS] Starting from scratch</A></strong>, 
T. Alexander Popiel <a href="mailto:popiel#snugharbor,com">popiel#snugharbor,com</a>, Thu 06 Aug 1998, 06:20 GMT
</LI>
<LI><strong><A NAME="00531" HREF="msg00531.html">[MUD-Dev] Re: [IDEAS] Starting from scratch</A></strong>, 
Adam Wiggins <a href="mailto:adam#mail,angel.com">adam#mail,angel.com</a>, Thu 06 Aug 1998, 18:18 GMT
</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>