Lock is the part of the variable which is used for access synchronization to the variable |
Locks can be used as independent locking mechanism - the value is ignored |
Lock can have value of N, S, or X |
In case of S lock value a set of users is associated with the lock |
In case of X lock value one user is associated with it |