<!-- MHonArc v2.4.4 --> <!--X-Subject: [MUD-Dev] Re: lockless system - foolproof? --> <!--X-From-R13: X Q Znjerapr <pynjNxnatn.ah> --> <!--X-Date: Sun, 30 Aug 1998 13:23:26 -0700 --> <!--X-Message-Id: E0zDE0U-0008NW-00#mail,kanga.nu --> <!--X-Content-Type: text/plain --> <!--X-Reference: 199808301603.KAA01123@ami-cg.GraySage.Edmonton.AB.CA --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, [MUD-Dev] Re: lockless system - foolproof?</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:claw#kanga,nu"> </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="msg00878.html">Previous</a> | <a href="msg00880.html">Next</a> ] Thread: [ <a href="msg00877.html">Previous</a> | <a href="msg00874.html">Next</a> ] Index: [ <A HREF="author.html#00879">Author</A> | <A HREF="#00879">Date</A> | <A HREF="thread.html#00879">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>[MUD-Dev] Re: lockless system - foolproof?</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: lockless system - foolproof? </LI> <LI><em>From</em>: J C Lawrence <<A HREF="mailto:claw#kanga,nu">claw#kanga,nu</A>></LI> <LI><em>Date</em>: Sun, 30 Aug 1998 13:23:26 -0700</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 Sun, 30 Aug 1998 10:03:18 -0600 Chris Gray<cg#ami-cg,GraySage.Edmonton.AB.CA> wrote: > I certainly don't want to speak for JC, but here's my > understanding... > The goal is to have the programmer not have to worry about issues > like that - they are too tricky for most people who would want to > try scripting on a MUD. So, JC's system, last I heard, doesn't > present any specific locking or commit primitives to the > programmer. The goal is to have the underlying system take care of > it all for you. A lofty goal, but very nice if achieved effectively. Correct. There are no locking or commit sematics exposed to the user or programmer. > As an event runs, the system keeps original, untouched copies of all > database objects that the event references or changes. As the event > changes things, copies of the originals are made, and the changes > are put into those copies. When the event completes, the C&C > (compare and commit) happens (all automatically). If any of the > objects that the event referenced have been changed in the meantime, > then the event must be retried. Otherwise, the event's changes are > atomically committed to the database. Bingo! > I think there were some optimizations possible. There could be lots > of retries needed on busy objects. I believe some of the suggested > solutions involved the scheduling of events, with the final attempt > that of running the contentious (hah!) event all by itself, with > nothing else running. <nod> > That said, now JC can berate me for not understanding things > properly! Why would I ever do that? -- J C Lawrence Internet: claw#null,net ----------(*) Internet: coder#ibm,net ...Honourary Member of Clan McFud -- Teamer's Avenging Monolith... </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="00875" HREF="msg00875.html">[MUD-Dev] Re: lockless system - foolproof?</A></STRONG> <UL><LI><EM>From:</EM> Chris Gray <cg#ami-cg,GraySage.Edmonton.AB.CA></LI></UL></LI> </UL></LI></UL> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00878.html">[MUD-Dev] Re: lockless system - foolproof?</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00880.html">[MUD-Dev] Re: Modular MUD</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00877.html">[MUD-Dev] Re: lockless system - foolproof?</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00874.html">[MUD-Dev] Re: Modular MUD</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00879"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00879"><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="00914" HREF="msg00914.html">[MUD-Dev] VT-100 and other terminal data</A></strong>, J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 02 Sep 1998, 19:14 GMT <LI><strong><A NAME="00881" HREF="msg00881.html">[MUD-Dev] Admin: OS wars and avocacy are off-topic</A></strong>, J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Sun 30 Aug 1998, 21:26 GMT <LI><strong><A NAME="00875" HREF="msg00875.html">[MUD-Dev] Re: lockless system - foolproof?</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 30 Aug 1998, 16:06 GMT <UL> <LI><strong><A NAME="00877" HREF="msg00877.html">[MUD-Dev] Re: lockless system - foolproof?</A></strong>, James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sun 30 Aug 1998, 19:44 GMT </LI> <LI><strong><A NAME="00879" HREF="msg00879.html">[MUD-Dev] Re: lockless system - foolproof?</A></strong>, J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Sun 30 Aug 1998, 20:23 GMT </LI> </UL> </LI> <LI><strong><A NAME="00874" HREF="msg00874.html">[MUD-Dev] Re: Modular MUD</A></strong>, D. B. Brown <a href="mailto:dbrown1#stny,lrun.com">dbrown1#stny,lrun.com</a>, Sun 30 Aug 1998, 16:04 GMT <UL> <li><Possible follow-up(s)><br> <LI><strong><A NAME="00880" HREF="msg00880.html">[MUD-Dev] Re: Modular MUD</A></strong>, quzah <a href="mailto:quzah#geocities,com">quzah#geocities,com</a>, Sun 30 Aug 1998, 21:10 GMT <UL> <LI><strong><A NAME="00884" HREF="msg00884.html">[MUD-Dev] Re: Modular MUD</A></strong>, Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Mon 31 Aug 1998, 12:04 GMT <UL> <LI><strong><A NAME="00885" HREF="msg00885.html">[MUD-Dev] Re: Modular MUD</A></strong>, Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Mon 31 Aug 1998, 14:18 GMT </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>