1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: lockless system &#45; foolproof? -->
<!--X-From-R13: X Q Znjerapr <pynjNxnatn.ah> -->
<!--X-Date: Sun, 30 Aug 1998 13:23:26 &#45;0700 -->
<!--X-Message-Id: E0zDE0U&#45;0008NW&#45;00#mail,kanga.nu -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199808301603.KAA01123@ami&#45;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>
[&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="msg00878.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00880.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00877.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00874.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00879">Author</A>
&nbsp;|&nbsp;<A HREF="#00879">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00879">Thread</A>
&nbsp;]

<!--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 &lt;<A HREF="mailto:claw#kanga,nu">claw#kanga,nu</A>&gt;</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&lt;cg#ami-cg,GraySage.Edmonton.AB.CA&gt; wrote:

&gt; I certainly don't want to speak for JC, but here's my
&gt; understanding...

&gt; The goal is to have the programmer not have to worry about issues
&gt; like that - they are too tricky for most people who would want to
&gt; try scripting on a MUD. So, JC's system, last I heard, doesn't
&gt; present any specific locking or commit primitives to the
&gt; programmer. The goal is to have the underlying system take care of
&gt; 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.

&gt; As an event runs, the system keeps original, untouched copies of all
&gt; database objects that the event references or changes. As the event
&gt; changes things, copies of the originals are made, and the changes
&gt; are put into those copies. When the event completes, the C&amp;C
&gt; (compare and commit) happens (all automatically). If any of the
&gt; objects that the event referenced have been changed in the meantime,
&gt; then the event must be retried. Otherwise, the event's changes are
&gt; atomically committed to the database. 

Bingo!

&gt; I think there were some optimizations possible. There could be lots
&gt; of retries needed on busy objects. I believe some of the suggested
&gt; solutions involved the scheduling of events, with the final attempt
&gt; that of running the contentious (hah!) event all by itself, with
&gt; nothing else running.

&lt;nod&gt;

&gt; That said, now JC can berate me for not understanding things
&gt; 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 &lt;cg#ami-cg,GraySage.Edmonton.AB.CA&gt;</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>&lt;Possible follow-up(s)&gt;<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>
[&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>