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 generating component that generates 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 when acquisition of the resource lock is postponed, for each resource of a plurality of resources; and
a determining component that determines a specific order such that resources with a higher time exclusion expectation generated by the generating component will be 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.
6 Citations
16 Claims
-
1. A device for acquiring resource locks for a plurality of resources in a specific order, comprising:
-
a generating component that generates 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 when acquisition of the resource lock is postponed, for each resource of a plurality of resources; and a determining component that determines a specific order such that resources with a higher time exclusion expectation generated by the generating component will be assigned later in the order. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A device for acquiring resource locks for a plurality of resources in a specific order for a plurality of resources, comprising:
-
a memory that stores a pre-established order as a specific order; a retrieving component that when acquisition of a specific resource lock has been requested as a first request for acquisition of resource lock by an application program that uses specific resources from a plurality of resources, retrieves as a first request time a time of a request for acquisition of locking other resources with regard to software that manages a plurality of resources, if other resources which are resources for which a lock is not being acquired and that are resources with a earlier order than specific resources, and are scheduled to be used by the application program, for a pre-established order, retrieves as the first acquisition time a time that another resource lock was acquired by the software, subsequently retrieves as a first request time the time that acquisition of a lock for specific resources was requested with regard to the software, retrieves as the first acquisition time the time that specific resource lock was acquired by the software, and retrieves as the second acquisition time the time that a specific resource lock was acquired; and for the case where acquisition of a specific resource lock has been requested as a second or subsequent request for acquisition of resource lock by an application program that uses specific resources from a plurality of resources, retrieves as the first request time the time of a request for acquisition of locking other resources with regard to software that manages a plurality of resources, if other resources which are resources for which a lock is not being acquired and that are resources with a earlier order than specific resources, and are scheduled to be used by an application program that manages a plurality of resources, for a pre-established order, retrieves as the first acquisition time the time that another resource lock was acquired by the software, subsequently retrieves as the second request time the time that acquisition of a specific resource lock was requested with regards to the software, retrieves as the first acquisition time the time that specific resource lock was acquired by the software, and retrieves as the first acquisition time the time that a specific resource lock was acquired; a generating component that generates a lock waiting time exclusion expectation which is an expectation for the length of time of waiting for locking of other resources that is excluded from the time of retaining the lock on each resource by postponing acquisition of each resource lock, based on the time retrieved as the first request time by the retrieving component based on each resource from a plurality of resources and based on the time retrieved as the first acquired time by the retrieving component, and generates a pre-use time exclusion expectation which is an expectation of the length of time until each resource is used excluding the time for retaining each resource lock by postponing acquisition of the lock for each resource, based on the time retrieved as the second request time by the retrieving component and the time retrieved as the second acquisition time by the retrieving component; and an updating component that updates the pre-established order recorded in the memory such that resources with a larger total expectation obtained based on the lock wait time exclusion expectation produced by the generating component and the pre-use time exclusion expectation are assigned to be later in the order.
-
-
9. A method for acquiring resource locks for a plurality of resources in a specific order for a plurality of resources, comprising:
-
generating a time exclusion expectation which is an expectation for a length of time that is excluded from a time for retaining a lock on the resource for a case where acquisition of the resource lock is postponed, for each resource of a plurality of resources; and determining a specific order such that resources with a higher time exclusion expectation that was generated will be assigned later in the order. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A program causing function of the computer, as a device for acquiring resource locks for a plurality of resources in a specific order for a plurality of resources, wherein:
- the computer is made to function as;
a generating part that generates a time exclusion expectation which is an expectation for the length of time that is excluded from a time for retaining a lock on the resource for the case where acquisition of the resource lock is postponed, for each resource of a plurality of resources; and a determining part that determines a specific order such that resources with a higher time exclusion expectation generated by the generating part will be assigned later in the order.
- the computer is made to function as;
Specification