METHOD AND APPARATUS FOR SELECTING A LOCKING POLICY BASED ON A PER-OBJECT LOCKING HISTORY
Patent №
US 6,687,904
Granted
2004-02-03
Filed 1999
Owner
SUN MICROSYSTEMS, INC.
Lab
—
AI components
1
hardware
Assignment
Recorded
Dataset
AIPD
2023_r1 edition
Application
09444552
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.
AI classification
Ownership
SUN MICROSYSTEMS, INC.
assignment · 104130075
Assignors
WEISSMAN, BORIS
On an employer assignment, the assignors are typically the inventors.