×

Synchronization mechanisms based on counters

  • US 8,392,925 B2
  • Filed: 03/26/2009
  • Issued: 03/05/2013
  • Est. Priority Date: 03/26/2009
  • Status: Active Grant
First Claim
Patent Images

1. A computer implemented method, comprising:

  • maintaining a plurality of counters in memory including a lock counter and an unlock counter to synchronize a plurality of requests for a lock, the lock counter indicating a cumulative number of the requests, and the unlock counter indicating a cumulative number of a portion of the requests having released the lock, the requests stored with sequence numbers to wait for the lock, the sequence numbers counted via the lock counter, each request uniquely identified via one of the sequence numbers;

    selecting at least one of the requests stored to grant the lock according to the sequence numbers, wherein the lock counter has a current count when the at least one request is selected, wherein the sequence numbers stored with the requests include consecutive sequence numbers less than the current count; and

    performing the synchronized operations for the selected requests.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×