Patent ID: 6546412
Filing Date: 2003-04-08
Classification: G06F

Abstract:
A method for nested locking of a plurality of lockable objects on a flow of control, the method comprising:receiving at a locking mechanism a request to lock the first object and true-locking of the first object by the locking mechanism; issuing a request from the first object to a second object to perform an action; receiving at the locking mechanism a request from the second object to lock the second object and true-locking the second object; issuing a request from the second object to lock the first object; receiving at the locking mechanism a request for a lock on the first object by the second object; issuing a false-lock on the first object by the locking mechanism in response to the second object lock request; and replying to the second object from the locking mechanism that the requested true lock is in place, wherein the method allows the acquiring of an unlimited number of nested locks and the true-lock on the first object determines a hierarchy of all subsequent locks on the first object within the flow of control.