<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ?? -->
<!--X-From-R13: Xbry Rvyyba <rzvylNpbeaubyvb.arj.bk.np.hx> -->
<!--X-Date: Sun, 22 Mar 1998 13:55:24 +0000 -->
<!--X-Message-Id: Pine.LNX.3.95.980322135305.22652A-100000#cornholio,new.ox.ac.uk -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Pine.LNX.3.96.980322133804.527D-100000#mpc,dyn.ml.org -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:emily#cornholio,new.ox.ac.uk">
</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="msg00815.html">Previous</a>
| <a href="msg00817.html">Next</a>
]
Thread:
[ <a href="msg00815.html">Previous</a>
| <a href="msg00817.html">Next</a>
]
Index:
[ <A HREF="author.html#00816">Author</A>
| <A HREF="#00816">Date</A>
| <A HREF="thread.html#00816">Thread</A>
]
<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: mud-dev <<A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A>></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</LI>
<LI><em>From</em>: Joel Dillon <<A HREF="mailto:emily#cornholio,new.ox.ac.uk">emily#cornholio,new.ox.ac.uk</A>></LI>
<LI><em>Date</em>: Sun, 22 Mar 1998 13:55:22 +0000 (GMT)</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
> >
> > The problem here is that you can't do nonblocking i/o in Java. So
> > while you were waiting for input from 1 player the others would all be
> > blocked ;)
>
> Hmm, I'm not sure that this would be a significant problem, BUT that
> depends entirely on how much information players are sending via the
> thread. If its more than a few bytes, then yes, ack, you'll be creating
> your own lag-o-rama. It might be possible to get around this by spawning
> threads from the socket-reading thread which processed and acted on the
> information, and then removed themselves (I think this may be how I was
> originally thinking).
Well, the problem is that if you have one thread reading from all
the sockets, and it tries to get a line (or a character, just as bad
with most modern telnets that send line-by-line) from a given socket,
it will block until it actually has a line. So if the player sits
there for 5 minutes and doesn't type a command, the socket reading
thread sits there waiting for the line and not reading from /any/ socket
for 5 minutes. This is obviously sub-optimal ;) The normal way to do
multi-user servers in Java is with threads, and for any number of users
below 1000 (at the very least) using a thread per user should be safe.
Jo
</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="00815" HREF="msg00815.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></STRONG>
<UL><LI><EM>From:</EM> Matt Chatterley <matt#mpc,dyn.ml.org></LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00815.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00817.html">Another recruit for the list?</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00815.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00817.html">Another recruit for the list?</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00816"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00816"><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] World Persistence, flat files v/s DB v/s ??</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00827" HREF="msg00827.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong>,
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sun 22 Mar 1998, 20:05 GMT
</LI>
</ul>
<LI><strong><A NAME="00812" HREF="msg00812.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong>,
Matt Chatterley <a href="mailto:matt#mpc,dyn.ml.org">matt#mpc,dyn.ml.org</a>, Sun 22 Mar 1998, 12:44 GMT
<UL>
<LI><strong><A NAME="00814" HREF="msg00814.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong>,
Joel Dillon <a href="mailto:emily#cornholio,new.ox.ac.uk">emily#cornholio,new.ox.ac.uk</a>, Sun 22 Mar 1998, 12:50 GMT
<UL>
<LI><strong><A NAME="00815" HREF="msg00815.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong>,
Matt Chatterley <a href="mailto:matt#mpc,dyn.ml.org">matt#mpc,dyn.ml.org</a>, Sun 22 Mar 1998, 13:40 GMT
<UL>
<LI><strong><A NAME="00816" HREF="msg00816.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong>,
Joel Dillon <a href="mailto:emily#cornholio,new.ox.ac.uk">emily#cornholio,new.ox.ac.uk</a>, Sun 22 Mar 1998, 13:55 GMT
</LI>
<LI><strong><A NAME="00817" HREF="msg00817.html">Another recruit for the list?</A></strong>,
Joel Dillon <a href="mailto:emily#cornholio,new.ox.ac.uk">emily#cornholio,new.ox.ac.uk</a>, Sun 22 Mar 1998, 15:29 GMT
</LI>
<LI><strong><A NAME="00855" HREF="msg00855.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong>,
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Mon 23 Mar 1998, 20:38 GMT
<UL>
<LI><strong><A NAME="00872" HREF="msg00872.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong>,
Joel Dillon <a href="mailto:emily#cornholio,new.ox.ac.uk">emily#cornholio,new.ox.ac.uk</a>, Tue 24 Mar 1998, 08:16 GMT
<UL>
<LI><strong><A NAME="00879" HREF="msg00879.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong>,
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 25 Mar 1998, 00:17 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</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>