×

SYSTEMS AND METHODS FOR CONTROLLING ACCESS TO A SHARED DATA STRUCTURE WITH READER-WRITER LOCKS USING MULTIPLE SUB-LOCKS

  • US 20150248367A1
  • Filed: 07/31/2012
  • Published: 09/03/2015
  • Est. Priority Date: 07/31/2012
  • Status: Active Grant
First Claim
Patent Images

1. A computer system for controlling access to a shared data structure, comprising:

  • a first processing unit coupled to a first cache dedicated to the first processing unit;

    a second processing unit coupled to a second cache dedicated to the second processing unit;

    a shared memory coupled to the first and second processing units that stores a multi-lock to control access to a data structure shared by the first and second processing units, the multi-lock comprising a first sub-lock associated with the first processing unit and a second sub-lock associated with the second processing unit, the sub-locks comprising a read portion and a write portion;

    a coherence bus that couples the first and second caches and carries coherency information between the first and second caches; and

    a data access control engine to receive a request to read from the data structure from the first processing unit and, as a result;

    determine whether a privately modifiable copy the first sub-lock exists in the first cache;

    acquire the read portion of the first sub-lock and not communicate the acquisition across the coherence bus if a privately modifiable copy of the first sub-lock exists in the first cache; and

    if a privately modifiable copy of the first sub-lock does not exist in the first cache, load the first sub-lock into the first cache if no copy is in the first cache, shootdown other copies of the first sub-lock, and acquire the read portion of the first sub-lock.

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