IPC분류정보
국가/구분 |
United States(US) Patent
등록
|
국제특허분류(IPC7판) |
|
출원번호 |
US-0418155
(2012-03-12)
|
등록번호 |
US-8768905
(2014-07-01)
|
발명자
/ 주소 |
|
출원인 / 주소 |
- International Business Machines Corporation
|
대리인 / 주소 |
|
인용정보 |
피인용 횟수 :
2 인용 특허 :
83 |
초록
▼
An indication of refusal of a lock request is received with a first operation identifier for a resource that is already locked with a lock associated with a second operation identifier from an agent that controls the resource, wherein the agent returns a value that determines how long the lock reque
An indication of refusal of a lock request is received with a first operation identifier for a resource that is already locked with a lock associated with a second operation identifier from an agent that controls the resource, wherein the agent returns a value that determines how long the lock request is to stay on the queue. The lock request is placed in a queue with a lock queue timeout period based on the value from the agent. The lock request is reissued if the lock associated with the second operation identifier has been released and the lock request reaches a position of the queue from which the lock request is processed within the lock queue timeout period. The lock request is re-queued if the reissued lock request is not granted based on how many times the lock request has been previously placed in the queue.
대표청구항
▼
1. A system for deadlock management, comprising: a processor;a computer readable storage medium accessible to the processor, wherein the computer readable storage medium stores code, and wherein the code causes the processor to perform: receiving, from an agent that controls a resource, an indicatio
1. A system for deadlock management, comprising: a processor;a computer readable storage medium accessible to the processor, wherein the computer readable storage medium stores code, and wherein the code causes the processor to perform: receiving, from an agent that controls a resource, an indication of refusal of a lock request with a first operation identifier for the resource that is already locked with a lock associated with a second operation identifier, wherein the agent that controls the resource returns a value that determines how long the lock request is to stay on a queue, wherein the first operation identifier and the second operation identifier are each a compound key with a first part indicating whether that operation identifier was generated by a transaction manager, with a second part being one of a lock management group name and a transaction manager name, and with a third part being a unique number in a context of one of the lock management group and the transaction manager;placing the lock request in the queue with a lock queue timeout period based on the value from the agent; andin response to determining that the lock associated with the second operation identifier has been released and the lock request reaches a position of the queue from which the lock request is processed within the lock queue timeout period, reissuing the lock request; andin response to determining that the reissued lock request is not granted, based on how many times the lock request has been previously placed in the queue, denying re-queuing of the lock request. 2. The system of claim 1, wherein the code causes the processor to further perform: in response to determining that the lock request is not granted within the lock queue timeout period, denying the lock request, wherein for a transaction level of locking, an operation associated with the first operation identifier is rolled back by undoing actions of the operation. 3. An article of manufacture comprising a storage device storing code for deadlock management, wherein the code, when executed by a processor of a computer, causes operations comprising: receiving, from an agent that controls a resource, an indication of refusal of a lock request with a first operation identifier for the resource that is already locked with a lock associated with a second operation identifier, wherein the agent that controls the resource returns a value that determines how long the lock request is to stay on a queue, wherein the first operation identifier and the second operation identifier are each a compound key with a first part indicating whether that operation identifier was generated by a transaction manager, with a second part being one of a lock management group name and a transaction manager name, and with a third part being a unique number in a context of one of the lock management group and the transaction manager;placing the lock request in the queue with a lock queue timeout period based on the value from the agent; andin response to determining that the lock associated with the second operation identifier has been released and the lock request reaches a position of the queue from which the lock request is processed within the lock queue timeout period, reissuing the lock request; andin response to determining that the reissued lock request is not granted, based on how many times the lock request has been previously placed in the queue, denying re-queuing of the lock request. 4. The article of manufacture of claim 3, the operations further comprising: in response to determining that the lock request is not granted within the lock queue timeout period, denying the lock request, wherein for a transaction level of locking, an operation associated with the first operation identifier is rolled back by undoing actions of the operation. 5. A method for deadlock management comprising: receiving, from an agent that controls a resource, an indication of refusal of a lock request with a first operation identifier for the resource that is already locked with a lock associated with a second operation identifier, wherein the agent that controls the resource returns a value that determines how long the lock request is to stay on a queue, wherein the first operation identifier and the second operation identifier are each a compound key with a first part indicating whether that operation identifier was generated by a transaction manager, with a second part being one of a lock management group name and a transaction manager name, and with a third part being a unique number in a context of one of the lock management group and the transaction manager;placing the lock request in the queue with a lock queue timeout period based on the value from the agent; andin response to determining that the lock associated with the second operation identifier has been released and the lock request reaches a position of the queue from which the lock request is processed within the lock queue timeout period, reissuing the lock request; andin response to determining that the reissued lock request is not granted, based on how many times the lock request has been previously placed in the queue, denying re-queuing of the lock request. 6. The method of claim 5, further comprising: in response to determining that the lock request is not granted within the lock queue timeout period, denying the lock request, wherein for a transaction level of locking, an operation associated with the first operation identifier is rolled back by undoing actions of the operation. 7. A system for deadlock management, comprising: means for receiving, from an agent that controls a resource, an indication of refusal of a lock request with a first operation identifier for the resource that is already locked with a lock associated with a second operation identifier, wherein the agent that controls the resource returns a value that determines how long the lock request is to stay on a queue, wherein the first operation identifier and the second operation identifier are each a compound key with a first part indicating whether that operation identifier was generated by a transaction manager, with a second part being one of a lock management group name and a transaction manager name, and with a third part being a unique number in a context of one of the lock management group and the transaction manager;means for placing the lock request in the queue with a lock queue timeout period based on the value from the agent; andin response to determining that the lock associated with the second operation identifier has been released and the lock request reaches a position of the queue from which the lock request is processed within the lock queue timeout period, means for reissuing the lock request; andmeans for, in response to determining that the reissued lock request is not granted, based on how many times the lock request has been previously placed in the queue, denying re-queuing of the lock request.
※ AI-Helper는 부적절한 답변을 할 수 있습니다.