Assigning lock resources to objects
AssigneeEMC Corporation
InventorsWalter Lei Wang, Matt Zhu Zhang, Gang Cao, Ren Ren, Xiangqing Yang
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure provide a method and apparatus for assigning lock resources to objects by obtaining a first alternative lock for the object, and determining first correlations between the object and each of one or more other objects when the first alternative lock has been assigned to the one or more other objects, wherein in response to determining that each of the first correlations is lower than a predetermined threshold, assign the first alternative lock to the object, and may maximize the possibility of parallel execution and reduce the time waiting for lock resources, thereby avoiding lock contention.
Claims20
A method for assigning a lock resource to an object, comprising:
- obtaining a first alternative lock for an object;
- determining first correlations between the object and each of one or more other objects when the first alternative lock has been assigned to the one or more other objects;
- and
- in response to determining that each of the first correlations is lower than a predetermined threshold, assigning the first alternative lock to the object.
A method for assigning lock resources to a plurality of objects, comprising:
- receiving a request for lock resources from a plurality of objects;
- and
- assigning the lock resources to each of the plurality of objects based on a correlation between the plurality of objects.
An apparatus for assigning a lock resource to an object, comprising a processing unit configured to:
- obtain a first alternative lock for an object;
- determine first correlations between the object and each of one or more other objects when the first alternative lock has been assigned to the one or more other objects;
- and
- in response to determining that each of the first correlations is lower than a predetermined threshold, assign the first alternative lock to the object.
An apparatus for assigning lock resources to a plurality of objects, comprising a processing unit configured to:
- receive a request for lock resources from the plurality of objects;
- and
- assign the lock resources to each of the plurality of objects based on correlations between the plurality of objects.
The apparatus according to claim 19, further configured to perform at least one of:
- in response to a correlation between two objects in the plurality of objects is greater than a first threshold, avoiding assigning a same lock resource to the two objects;
- and
- in response to a correlation between two objects in the plurality of objects is lower than a second threshold, assigning a same lock resource to the two objects.
Dependencies are inferred from the claim text.