Sequentially performed compound compare-and-swap
AssigneeOracle America, Inc.
InventorsGuy L. Steele, Jr., Ole Agesen, Nir N. Shavit
Life of this patent
Estimating the term…
Loading patent…
AssigneeOracle America, Inc.
InventorsGuy L. Steele, Jr., Ole Agesen, Nir N. Shavit
Estimating the term…
A sequentially performed implementation of a compound compare-and-swap (nCAS) operation has been developed. In one implementation, a double compare-and-swap (DCAS) operation does not result in a fault, interrupt, or trap in the situation where memory address A2 is invalid and the contents of memory address A1 are unequal to C1. In some realizations, memory locations addressed by a sequentially performed nCAS or DCAS instruction are reserved (e.g., locked) in a predefined order in accordance with a fixed total order of memory locations. In this way, deadlock between concurrently executed instances of sequentially performed nCAS instructions can be avoided. Other realizations defer responsibility for deadlock avoidance to the programmer.
A method for executing a compound synchronization operation (CSO), comprising:
A computer readable medium storing instructions to perform a compound synchronization operation (CSO), the instructions executable on a processor and comprising functionality to:
Dependencies are inferred from the claim text.