Method and apparatus for selecting a locking policy based on a per-object locking history
AssigneeSun Microsystems, Inc.
InventorsBenedict A. Gomes, Boris Weissman
Life of this patent
Estimating the term…
Loading patent…
AssigneeSun Microsystems, Inc.
InventorsBenedict A. Gomes, Boris Weissman
Estimating the term…
Methods and apparatus for locking an object using an efficient combination spinning and blocking process are disclosed. According to one aspect of the present invention, a method for acquiring ownership of an object in an object-based environment using a current thread includes determining when the object is owned by another thread, and locking the object when it is determined that the object is not owned by the another thread. A first spinning process, which is implemented when it is determined that the object is owned by the another thread, is arranged such that the current thread spins for up to a predetermined number of spin cycles associated with the current thread and the object. The predetermined number of spin cycles is determined using historical information, and is not based upon an overall system specification. When it is determined that the object has not been locked by the current thread during the first spinning process, a first blocking process is implemented.
A computer-implemented method for acquiring ownership of an object in an object-based environment using a current thread, the computer-implemented method comprising:
A computer-implemented method for acquiring ownership of an object in an object-based environment using a current thread, the computer-implemented method comprising:
An object-based computing environment, the object-based computing environment including an object, the object having an associated locking mechanism, the object-based computing environment comprising:
A computer program product for acquiring ownership of an object in an object-based environment using a current thread, the computer program product comprising:
A computer-implemented method for acquiring ownership of an object in an object-based system, the computer-implemented method comprising:
Dependencies are inferred from the claim text.