Method, system, and program for managing locks and transactions
First Claim
1. A method for locking, comprising:
- receiving a request with a first operation identifier to lock a first resource;
locking the first resource with the first operation identifier; and
determining whether a second resource should be locked with the first operation identifier or with a second operation identifier based on whether an operation to be performed for the request may complete after the request is processed.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed is a method, system, and program for locking. A request is received with a first operation identifier to lock a first resource. The first resource is locked with the first operation identifier. It is determined whether a second resource should be locked with the first operation identifier or with a second operation identifier based on whether an operation to be performed for the request may complete after the request is processed.
Additionally disclosed is a method, system, and program for locking in which a request is received to lock a resource with a first operation identifier. It is determined whether the resource is locked with the first operation identifier. If it is determined that the resource is locked with the first operation identifier, the request receives a response with an indication that the resource is locked with the first operation identifier. If it is determined that the resource is locked with a second operation identifier, the lock request is denied.
Further disclosed is a method, system, and program for deadlock management. An indication of refusal of a lock request with a first operation identifier is received for a resource that is locked with a second operation identifier. The lock request is placed in a queue with a lock queue timeout period. The lock request is reissued if the lock request reaches a position of the queue from which the lock request may be processed within the lock queue timeout period.
-
Citations
24 Claims
-
1. A method for locking, comprising:
-
receiving a request with a first operation identifier to lock a first resource;
locking the first resource with the first operation identifier; and
determining whether a second resource should be locked with the first operation identifier or with a second operation identifier based on whether an operation to be performed for the request may complete after the request is processed. - View Dependent Claims (2, 3)
-
-
4. A system for locking, comprising:
-
a processor;
a computer readable medium accessible to the processor; and
program logic including code capable of causing the processor to perform;
(i) receiving a request with a first operation identifier to lock a first resource;
(ii) locking the first resource with the first operation identifier; and
(iii) determining whether a second resource should be locked with the first operation identifier or with a second operation identifier based on whether an operation to be performed for the request may complete after the request is processed. - View Dependent Claims (5, 6)
-
-
7. An article of manufacture including program logic for locking, wherein the program logic causes operations to be performed, the operations comprising:
-
receiving a request with a first operation identifier to lock a first resource;
locking the first resource with the first operation identifier; and
determining whether a second resource should be locked with the first operation identifier or with a second operation identifier based on whether an operation to be performed for the request may complete after the request is processed. - View Dependent Claims (8, 9)
-
-
10. A system for locking, comprising:
-
an agent;
a first resource controlled by the agent;
a second resource not controlled by the agent;
means for receiving a request with a first operation identifier to lock the first resource;
means for locking the first resource with the first operation identifier; and
means for determining whether the second resource should be locked with the first operation identifier or with a second operation identifier based on whether an operation to be performed for the request may complete after the request is processed.
-
-
11. A method for locking, comprising:
-
receiving a request to lock a resource with a first operation identifier;
determining whether the resource is locked with the first operation identifier;
if it is determined that the resource is locked with the first operation identifier, responding to the request with an indication that the resource is locked with the first operation identifier; and
if it is determined that the resource is locked with a second operation identifier, denying the lock request. - View Dependent Claims (12)
-
-
13. A system for locking, comprising:
-
a processor;
a computer readable medium accessible to the processor; and
program logic including code capable of causing the processor to perform;
(i) receiving a request to lock a resource with a first operation identifier;
(ii) determining whether the resource is locked with the first operation identifier;
(iii) if it is determined that the resource is locked with the first operation identifier, responding to the request with an indication that the resource is locked with the first operation identifier; and
(iv) if it is determined that the resource is locked with a second operation identifier, denying the lock request. - View Dependent Claims (14)
-
-
15. An article of manufacture including program logic for locking, wherein the program logic causes operations to be performed, the operations comprising:
-
receiving a request to lock a resource with a first operation identifier;
determining whether the resource is locked with the first operation identifier;
if it is determined that the resource is locked with the first operation identifier, responding to the request with an indication that the resource is locked with the first operation identifier; and
if it is determined that the resource is locked with a second operation identifier, denying the lock request. - View Dependent Claims (16)
-
-
17. A system for locking, comprising:
-
means for receiving a request to lock a resource with a first operation identifier;
means for determining whether the resource is locked with the first operation identifier by matching the first operation identifier against an operation identifier used to lock the resource;
means for, if it is determined that the resource is locked with the first operation identifier, responding to the request with an indication that the resource is locked with the first operation identifier; and
means for, if it is determined that the resource is locked with a second operation identifier, denying the lock request.
-
-
18. A method for deadlock management comprising:
-
receiving an indication of refusal of a lock request with a first operation identifier for a resource that is locked with a second operation identifier;
placing the lock request in a queue with a lock queue timeout period; and
reissuing the lock request if the lock request reaches a position of the queue from which the lock request may be processed within the lock queue timeout period. - View Dependent Claims (19)
-
-
20. A system for deadlock management, comprising:
-
a processor;
a computer readable medium accessible to the processor; and
program logic including code capable of causing the processor to perform;
(i) receiving an indication of refusal of a lock request with a first operation identifier for a resource that is locked with a second operation identifier;
(ii) placing the lock request in a queue with a lock queue timeout period; and
(iii) reissuing the lock request if the lock request reaches a position of the queue from which the lock request may be processed within the lock queue timeout period. - View Dependent Claims (21)
-
-
22. An article of manufacture including program logic for deadlock management, wherein the program logic causes operations to be performed, the operations comprising:
-
receiving an indication of refusal of a lock request with a first operation identifier for a resource that is locked with a second operation identifier;
placing the lock request in a queue with a lock queue timeout period; and
reissuing the lock request if the lock request reaches a position of the queue from which the lock request may be processed within the lock queue timeout period. - View Dependent Claims (23)
-
-
24. A system for deadlock management, comprising:
-
means for receiving an indication of refusal of a lock request with a first operation identifier for a resource that is locked with a second operation identifier;
means for placing the lock request in a queue with a lock queue timeout period;
means for, reissuing the lock request if the lock request reaches a position of the queue from which the lock request may be processed within the lock queue timeout period.
-
Specification