The fine thing about RFC677 is that it works even when some participate at a later date. For instance:
Request ownership:
If the other thread doesn't want to work with this shared value or wants to overwrite it with an unrelated one, it doesn't make a difference if it locks the value or not. So this thread doesn't have to participate. If another thread wants to lock, the lock reply can be earlier or later than the modification message. If it's later the lock has obviously failed. So a modification message instead of a lock grant doubles as lock fail message (And the round trip time is shortened). If it's earlier it must have been even earlier at the other thread. So a lock request instead of a lock grant means the lock failed at the initiating thread, and should be granted.
Relinquishing lock:
Because a lock is over a range of sequence numbers, and every value has a sequence number of last modification, every value that has a sequence number greater or equal as the end of the lock range is effectively unlocked because it can be modified by greater sequence numbers. So modifying the value relinquishes the lock automagically. No time necessary.

In reply to Re^16: Passing globs between threads (Updated). by Anonymous Monk
in thread Passing globs between threads by conrad

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.