Device and method for acquiring resource lock
First Claim
1. A device for acquiring resource locks for a plurality of resources in a specific order, comprising:
- a computing device for;
generating a time exclusion expectation, the time exclusion expectation comprising an expectation for a length of time that is excluded from a time for retaining a lock on a resource in a system in the case where acquisition of the resource lock is postponed based on statistics obtained by a statistical processing device, for each resource of a plurality of resources; and
shortening a lock retaining time for the system by determining a specific order such that resources with a higher time exclusion expectation generated by the generating component are assigned later in the order.
1 Assignment
0 Petitions
Accused Products
Abstract
A lock control device receives a lock acquisition request from an application and transmits a lock acquisition request to a DBMS, receives a lock acquisition response from the DBMS, and transmits a lock acquisition response to the application, and each time, acquires statistical time information including the lock request counter, subsequent lock request counter, lock request time, lock acquisition time, initial lock acquisition time, and subsequent lock request time. The statistical processing device calculates the lock request count for each resource, subsequent lock request count for each resource, average lock wait time, and average lock acquisition delay expectation time, based on the statistical time information. Based on these values, the statistical processing device calculates an evaluation value which is the degree of expectation for the time eliminated from the lock wait time when lock acquisition is postponed, and outputs the lock order of the resources arranged in order of smallest evaluation value to a lock order table.
-
Citations
20 Claims
-
1. A device for acquiring resource locks for a plurality of resources in a specific order, comprising:
a computing device for; generating a time exclusion expectation, the time exclusion expectation comprising an expectation for a length of time that is excluded from a time for retaining a lock on a resource in a system in the case where acquisition of the resource lock is postponed based on statistics obtained by a statistical processing device, for each resource of a plurality of resources; and shortening a lock retaining time for the system by determining a specific order such that resources with a higher time exclusion expectation generated by the generating component are assigned later in the order. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
8. A method, comprising:
-
generating, by a computing device, a time exclusion expectation, the time exclusion expectation comprising an expectation for a length of time that is excluded from a time for retaining a lock on a resource in a system in the case where acquisition of the resource lock is postponed, for each resource of a plurality of resources; and shortening, by the computing device, lock retaining time for the system by determining a specific order such that resources with a higher generated time exclusion expectation are assigned later in the order. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A program product embodied on a non-transitory storage device, which when executed by a computing device, performs a method, the method comprising
generating a time exclusion expectation, the time exclusion expectation comprising an expectation for a length of time that is excluded from a time for retaining a lock on the resource in a system in the case where acquisition of the resource lock is postponed, for each resource of a plurality of resources; - and
shortening, by the computing device, lock retaining time for the system by determining a specific order such that resources with a higher generated time exclusion expectation are assigned later in the order. - View Dependent Claims (16, 17, 18, 19, 20)
- and
Specification