Read-write spinlock
First Claim
Patent Images
1. A method comprising:
- using values in a data structure in a read-write spinlock but no guard lock to control read access to a shared object; and
using values in the data structure and a guard lock to control write access to the shared object.
4 Assignments
0 Petitions
Accused Products
Abstract
An embodiment of the invention provides an apparatus and method for controlling access by a read-write spinlock with no mutual exclusion among readers. The apparatus and method perform the steps of using values in a data structure in the read-write spinlock to control read access to a shared object and using values in the data structure and a guard lock to control write access to the shared object.
7 Citations
37 Claims
-
1. A method comprising:
- using values in a data structure in a read-write spinlock but no guard lock to control read access to a shared object; and
using values in the data structure and a guard lock to control write access to the shared object. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
- using values in a data structure in a read-write spinlock but no guard lock to control read access to a shared object; and
-
14. An apparatus comprising:
- non transitory media encoded with a read-write spinlock including a data structure;
with values to control read access to a shared object without using a guard lock, and with values in the data structure and a guard lock to control write access to the shared object. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26)
- non transitory media encoded with a read-write spinlock including a data structure;
-
27. An apparatus for controlling access by a read-write spinlock with no mutual exclusion among readers, the apparatus comprising:
-
means for using values in a data structure in the read-write spinlock to control read access to a shared object; and means for using values in the data structure and a guard lock to control write access to the shared object.
-
-
28. An article of manufacture comprising a non-transitory machine-readable storage medium having stored thereon instructions to:
-
use values in a data structure in the read-write spinlock to control read access to a shared object without using a guard lock; and use values in the data structure and a guard lock to control write access to the shared object.
-
-
29. A method comprising:
-
using a spinlock data structure to control read access and to control write access to a data object as a function of values stored in said data structure; using a guard lock to prevent a processor requesting write access to said data object other than a processor controlling said guard lock from writing to said spinlock data structure; and using atomic read-then-write instructions to prevent a processor requesting read access to said data object from writing to said spinlock structure while another processor is writing to said spinlock structure. - View Dependent Claims (30, 31, 32, 33, 34, 35, 36, 37)
-
Specification