<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ?? --> <!--X-From-R13: [ngg Qunggreyrl <znggNzcp.qla.zy.bet> --> <!--X-Date: Wed, 25 Mar 1998 08:47:01 +0000 --> <!--X-Message-Id: Pine.LNX.3.96.980325083819.440H-100000#mpc,dyn.ml.org --> <!--X-Content-Type: text/plain --> <!--X-Reference: 35185F7C.9A26F985#freehold,crocodile.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: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> [ <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="msg00893.html">Previous</a> | <a href="msg00895.html">Next</a> ] Thread: [ <a href="msg00885.html">Previous</a> | <a href="msg00899.html">Next</a> ] Index: [ <A HREF="author.html#00894">Author</A> | <A HREF="#00894">Date</A> | <A HREF="thread.html#00894">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>: <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>: Matt Chatterley <<A HREF="mailto:matt#mpc,dyn.ml.org">matt#mpc,dyn.ml.org</A>></LI> <LI><em>Date</em>: Wed, 25 Mar 1998 08:46:40 +0000 (GMT)</LI> <LI><em>Reply-To</em>: <A HREF="mailto:neddy#itl,net">neddy#itl,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 Tue, 24 Mar 1998, Vadim Tkachenko wrote: > Matt Chatterley wrote: > > > > On Sun, 22 Mar 1998, Chris Gray wrote: > > > [Ben Greear:] [Snip] > > It is my understanding that (at least, according to the 1.1.x > > specifications), a Thread is terminated when its stop() method is called. > > Of course, some Java implementations may be buggy. :) > > Surprisingly, they are :-)) > > Some things worth mentioning: What a shocker. My opinions (and an attempt to tickle this back to full mud relevancy): > JDK 1.0.2: Thread.interrupt() doesn't work. Thread.stop() doesn't work > as expected if called from within the thread you want to stop. 1.0.2 is very out of date, though (and in general was buggy). You should be using at least 1.1.3v2 nowadays, 1.1.5 or JFC (I think thats the name for 1.2) even. I don't really suggest 1.2X, since its very new, likely very buggy too - quite a bit changed/developed. > Netscape Enterprise 3.* JVM: the same. BEWARE: it advertises itself as > JDK 1.1 compliant, but in fact hopelessly broken - apparently, these are > not the only things which don't work - my package which had been tested > on JDK 1.0.2 from different vendors for almost two years choke and died > at once. Blech. The only browser I trust for proper Java compliance is HotJava. Netscape 3.X needs patching to work at all properly, I think - and Netscape 4.X is just bloated. > JDK 1.2: Thread.stop() is deprecated - and let it rest in peace, > Thread.interrupt() is quite enough. Hmm. So threads truly are never destroyed by stop - really just stopped and left useless? If so, interrupt() is certainly a better method. :) This is something Java-in-a-Nutshell is not explicitly clear on. This reminds me that I really must neaten up Spod! so that it interupts its threads and makes sure to release all memory when internally closing down bits of itself. > > Consider a model where you have a resizeable array (see the Vector class) > > of Threads. You also maintain a list of available threads so you do not > > have to recalulate it, and follow a procedure akin to: > > > > New connection is made to the server: > > Check list of available threads. > > If null: extend the Vector and add a new thread to handle the > > connection. > > If not null: take the 'top' thread and re-assign it. > > > > A connection closes: > > Add that thread to the list of available threads. > > Suspend and 'reset' the thread. > > > > Seems interesting anyway. :) > > I wouldn't recommend messing with stopping and resuming threads, though > :-) > > The better solution will be probably if you have some Thread-derived > class which works like this: > > while ( isEnabled() ) > { > Runnable > r = waitForRunRequest(); // blocking wait > r.run(); > } This is more or less what I meant by 'suspend' (probably a poor choice of words, really). I was looking at things from a theory rather than code point of view, though. [Snip] While upon the notion of Java I'll toss an idea into the pit. Java plug-ins for a client, which the mud can send. Example: PennMUSH uses an abominable system for mail (@mail recepient=subject/message<enter>). How about if the server could aim you to an URL containing a plug-in (I'm loathe to call it applet, it may not work quite that way!), which gives you a small gui. A line for receipient(s), a line for subject, a small editor box for your message and a 'send' button which will send the command to the mud. Not a great example, but a reasonable one. -- Regards, -Matt Chatterley Spod: <A HREF="http://user.super.net.uk/~neddy/spod/spod.html">http://user.super.net.uk/~neddy/spod/spod.html</A> </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="00899" HREF="msg00899.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong> <ul compact><li><em>From:</em> Vadim Tkachenko <vt#freehold,crocodile.org></li></ul> </UL></LI></UL> <!--X-Follow-Ups-End--> <!--X-References--> <UL><LI><STRONG>References</STRONG>: <UL> <LI><STRONG><A NAME="00885" HREF="msg00885.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></STRONG> <UL><LI><EM>From:</EM> Vadim Tkachenko <vt#freehold,crocodile.org></LI></UL></LI> </UL></LI></UL> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00893.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00895.html">Heightfield Terrain Rendering Paper</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00885.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00899.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00894"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00894"><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> <LI><strong><A NAME="00823" HREF="msg00823.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, 19:19 GMT <UL> <LI><strong><A NAME="00852" HREF="msg00852.html">World Persistence, flat files v/s DB v/s ??</A></strong>, s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Mon 23 Mar 1998, 19:51 GMT <UL> <LI><strong><A NAME="00884" HREF="msg00884.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong>, Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Wed 25 Mar 1998, 05:23 GMT </LI> </UL> </LI> <LI><strong><A NAME="00885" HREF="msg00885.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong>, Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Wed 25 Mar 1998, 05:26 GMT <UL> <LI><strong><A NAME="00894" HREF="msg00894.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>, Wed 25 Mar 1998, 08:47 GMT <UL> <LI><strong><A NAME="00899" HREF="msg00899.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong>, Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Thu 26 Mar 1998, 01:59 GMT <UL> <LI><strong><A NAME="00904" HREF="msg00904.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>, Thu 26 Mar 1998, 15:52 GMT </LI> </UL> </LI> </UL> </LI> </UL> </LI> </UL> </LI> <LI><strong><A NAME="00830" HREF="msg00830.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sun 22 Mar 1998, 21:10 GMT </LI> <LI><strong><A NAME="00833" HREF="msg00833.html">Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 23 Mar 1998, 06:54 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>