W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > October to December 1999

RE: Exclusive Locking ... per lock type?

From: Jim Whitehead <ejw@ics.uci.edu>
Date: Mon, 27 Dec 1999 14:52:02 -0800
To: "Geoffrey M. Clemm" <geoffrey.clemm@rational.com>, w3c-dist-auth@w3.org

> Did section 8.10.6 of 2518 meant to say that an exclusive
> lock will fail if there already is a lock *of that locktype* on that
> resource, or if there is *any* exclusive lock there?

The intent was for the exclusivity to apply per locktype.  So, for example,
an exclusive read lock would not affect taking out an exclusive write lock.
However, it is possible to imagine lock types that would have semantics that
are not orthogonal to existing locks.  For example, while read and write are
pretty orthogonal, and hence exclusive read and exclusive write locks can
co-exist happily on the same resource, a hypothetical "read/write" lock type
would interfere with both a write lock and a (equally hypothetical) read
lock, and in this case I would expect a request for an exclusive read/write
lock to fail if there is either a shared read lock, or a shared write lock,
or an exclusive read lock, or an exclusive write lock on the resource.

So, the best answer is, when defining a new lock type the interactions of
the new lock type with all existing lock types needs to be taken into
consideration when creating the lock compatibility table.

- Jim
Received on Monday, 27 December 1999 17:55:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:19 UTC