摘要 |
In one embodiment of a computer-implemented system, comprising a plurality of computer entities and multiple resources, one of the computer entities may request a multi-resource lock to one of the multiple resources; the one resource determines whether a resource lock is available at the one resource and, if so, the one resource communicates with all peer resources to determine whether a resource lock is available; if the peer resources indicate a resource lock is available, lock all of the resources to the requesting computer entity, and the one resource communicates the lock of the resources to the requesting computer entity; and if any the resource indicates contention for the multi-resource lock, the one resource communicates the contention to the requesting computer entity, and the requesting computer entity backs off the multi-resource lock request and, after a random time interval, repeats the request. |