Using atomic operations to implement a read-write lock
AssigneeNVIDIA Corporation
InventorsZan Huang, Zhen Huang, Xu Guo, Lei Wu, Kunlun Li
Life of this patent
Estimating the term…
Loading patent…
AssigneeNVIDIA Corporation
InventorsZan Huang, Zhen Huang, Xu Guo, Lei Wu, Kunlun Li
Estimating the term…
A processing device maintains locking data including a first portion indicating whether a write operation is updating a data item or awaiting to update the data item, and a second portion indicating a number of read operations accessing the data item. A first read operation to the read the data item is received. a first locking condition is determined to be satisfied using the locking data, representing that no write operations are updating the data item or awaiting to update the data item. Responsive to the determination the first locking condition is satisfied, the second portion of the locking data is atomically incremented to reflect the number of read operations reading the data, and the first read operation to read the data is executed.
A method for ensuring thread-safe access to a shared data item in a parallel processing system, the method comprising:
A system for ensuring thread-safe access to a shared data item, the system comprising:
A non-transitory computer-readable storage medium comprising instructions that, when executed by a processing device, cause the processing device to perform operations comprising:
Dependencies are inferred from the claim text.