Patent ID: 6687904
Filing Date: 2004-02-03
Classification: G06F

Abstract:
A computer-implemented method for acquiring ownership of an object in an object-based environment using a current thread, the computer-implemented method comprising:determining when the object is owned by another thread; locking the object when it is determined that the object is not owned by the another thread; implementing a first spinning process when it is determined that the object is owned by the another thread, the first spinning process being 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 being determined using historical information; determining when the object has been locked by the current thread during the first spinning process; and implementing a first blocking process when it is determined that the object has not been locked by the current thread during the first spinning process, wherein during the first blocking process, the current thread awaits notification that the object is available for locking.