Patent ID: 7346747

Claim:
A computer system capable of executing a plurality of processes, comprising: at least one processor; and a memory operatively connected to the at least one processor and comprising a first memory location and a second memory location shared by the plurality of processes, the computer system further comprising instructions to: obtain a first exclusive lease to the first memory location for a first predetermined period of time to initiate a transaction; attempt to obtain a second exclusive lease to the second memory location for a second predetermined period of time, wherein the attempt is conditioned on the success of obtaining the first exclusive lease; obtain, in response to the attempt, the second exclusive lease, wherein the second exclusive lease is obtained during the first predetermined period of time; perform a calculation using a first value from the first memory location and a second value from the second memory location to obtain a computed value; attempt to extend the first exclusive lease for the first memory location by extending the first predetermined period of time; and commit the transaction when the attempt to extend the first exclusive lease to the first memory location is successful, wherein the commit comprises storing the computed value in the first memory location.