Lock Type Compatibility
The valid concurrent lock combinations are shown in the following table.
Exclusive | Update | Reserve | Shared | |
---|---|---|---|---|
Exclusive | No | No | No | No |
Update | No | No | No | Yes |
Reserve | No | No | No | Yes |
Shared | No | Yes | Yes | Yes |
To summarize:
-
A JADE object can have multiple shared locks, but only one reserve, update, or exclusive lock.
-
Shared locks are compatible with reserve locks and update locks, but not with exclusive locks.
-
A reserve lock is compatible with shared locks, but not with update locks or exclusive locks.
-
An exclusive lock is not compatible with any other lock type.