Utilizing software locking approach to execute code upon failure of hardware transactional approach
First Claim
1. A method comprising:
- utilizing a hardware approach to transactional memory to execute a code section relating to memory; and
, where utilizing the hardware approach to transactional memory fails a threshold in executing the code section, utilizing a software approach to locking memory to execute the code section relating to the memory.
1 Assignment
0 Petitions
Accused Products
Abstract
Utilizing a software locking approach to execute a code section, upon failure of a hardware transactional approach, is disclosed. A method is disclosed that includes utilizing a hardware approach to transactional memory to execute a code section relating to memory. Where utilizing the hardware approach fails a threshold in executing the code section, the software approach is instead utilized to execute the code section relating to the memory. The threshold may include the hardware approach aborting execution of the code section a predetermined one or more times. The hardware approach includes starting a transaction inclusive of the code section, conditionally executing the transaction, and upon successfully completing the transaction, committing execution to memory. The software locking approach includes placing a lock on memory, executing the code section, committing execution of the code section to the memory as the code section is executed, and then removing the lock from the memory.
130 Citations
20 Claims
-
1. A method comprising:
-
utilizing a hardware approach to transactional memory to execute a code section relating to memory; and
,where utilizing the hardware approach to transactional memory fails a threshold in executing the code section, utilizing a software approach to locking memory to execute the code section relating to the memory. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A system comprising:
-
a processor having transactional memory capability; and
,a memory storing a spin lock function to execute a code section by utilizing a software approach to locking memory where the transactional memory capability has initially failed a threshold in executing the code section. - View Dependent Claims (13, 14, 15, 16, 17)
-
-
18. An article of manufacture comprising:
-
a computer-readable medium; and
,means in the medium for utilizing a software approach to locking memory to execute a code section where a hardware approach to transactional memory has failed a threshold in executing the code section. - View Dependent Claims (19, 20)
-
Specification