Patent ID: 6779090
Filing Date: 2004-08-17
Classification: G06F,Y10S

Abstract:
A method comprising:attempting to set a lock flag for a lock on a memory section; in response to successfully setting the lock flag, holding the lock on the memory section; processing the memory section; upon being ready to release the lock on the memory section, and in response to determining that one or more units are spinning for the lock on the memory section, selecting one of the one or more units; resetting a spin flag for the one of the one or more units; otherwise, resetting the lock flag for the lock on the memory section; in response to unsuccessfully setting the lock flag, setting a spin flag for a corresponding unit; spinning until the spin flag for the corresponding unit is reset; attempting to reset a race flag for the lock; and, in response to successfully resetting the race flag, holding the lock on the memory section.