EXECUTION OF PROGRAM REGION WITH TRANSACTIONAL MEMORY
First Claim
1. A method for executing a program region by a computer system using hierarchical locks with transactional memory support, each lock being associated with a shared resource among available resources, the method comprising;
- in beginning a transaction for the program region, determining whether a first condition related to a transaction abort is satisfied;
acquiring a bottom level lock corresponding to a bottom level resource among the available resources to execute the program region in the transaction if the first condition is satisfied;
acquiring a next level lock corresponding to next level resource if a second condition is determined to be satisfied; and
executing the program region without using the transaction if the acquired lock is a top level lock corresponding to a top level resource.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for executing a program region by a computer system with transactional memory support is disclosed. The computer system uses hierarchical locks for executing the program region. Determination is conducted whether a first condition related to a transaction abort is satisfied in beginning a transaction for the program region. If the first condition is satisfied, a bottom level lock corresponding to a bottom level resource among available resources is acquired to execute the program region in the transaction. If a second condition is determined to be satisfied, a next level lock corresponding to next level resource is acquired. If the acquired lock is a top level lock corresponding to a top level resource, the program region is executed without using the transaction.
-
Citations
24 Claims
-
1. A method for executing a program region by a computer system using hierarchical locks with transactional memory support, each lock being associated with a shared resource among available resources, the method comprising;
-
in beginning a transaction for the program region, determining whether a first condition related to a transaction abort is satisfied; acquiring a bottom level lock corresponding to a bottom level resource among the available resources to execute the program region in the transaction if the first condition is satisfied; acquiring a next level lock corresponding to next level resource if a second condition is determined to be satisfied; and executing the program region without using the transaction if the acquired lock is a top level lock corresponding to a top level resource. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. A computer system for executing a program region by executing program instructions, the computer system comprising:
-
a memory tangibly storing the program instructions; and at least a processor in communications with the memory, wherein the computer system has transactional memory support and uses hierarchical locks, each lock being associated with a shared resource among available resources, the computer system being configured to; determine whether a first condition related to a transaction abort is satisfied in beginning a transaction for the program region; acquire a bottom level lock corresponding to a bottom level resource among the available resources to execute the program region in the transaction if the first condition is satisfied; acquire a next level lock corresponding to next level resource if a second condition is determined to be satisfied; and execute the program region without using the transaction if the acquired lock is a top level lock corresponding to a top level resource. - View Dependent Claims (16, 17)
-
-
18. A computer system for executing a program region with transactional memory support, the computer system comprising:
-
hierarchical locks, each lock being associated with a shared resource among available resources; and a transaction begin module configured to determine whether a first condition related to a transaction abort is satisfied in beginning a transaction for the program region;
acquire a bottom level lock corresponding to a bottom level resource to execute the program region in the transaction if the first condition is satisfied; and
acquire a next level lock corresponding to next level resource if a second condition is determined to be satisfied;wherein the program region is executed without using the transaction if the acquired lock is a top level lock corresponding to a top level resource. - View Dependent Claims (19, 20, 21)
-
-
22. A computer program product for executing a program region, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions comprising:
-
computer-executable program code to define hierarchical locks, each lock being associated with a shared resource among available resources; computer-executable program code to determine whether a first condition related to a transaction abort is satisfied in beginning a transaction for the program region; computer-executable program code to acquire a bottom level lock corresponding to a bottom level resource to execute the program region in the transaction if the first condition is satisfied; computer-executable program code to acquire a next level lock corresponding to next level resource if a second condition is determined to be satisfied; and computer-executable program code to execute the program region without using the transaction if the acquired lock is a top level lock corresponding to a top level resource. - View Dependent Claims (23, 24)
-
Specification