Adaptive spin-then-block mutual exclusion in multi-threaded processing
AssigneeOracle America, Inc.
InventorDavid Dice
Life of this patent
Estimating the term…
Loading patent…
AssigneeOracle America, Inc.
InventorDavid Dice
Estimating the term…
Adaptive modifications of spinning and blocking behavior in spin-then-block mutual exclusion include limiting spinning time to no more than the duration of a context switch. Also, the frequency of spinning versus blocking is limited to a desired amount based on the success rate of recent spin attempts. As an alternative, spinning is bypassed if spinning is unlikely to be successful because the owner is not progressing toward releasing the shared resource, as might occur if the owner is blocked or spinning itself. In another aspect, the duration of spinning is generally limited, but longer spinning is permitted if no other threads are ready to utilize the processor. In another aspect, if the owner of a shared resource is ready to be executed, a thread attempting to acquire ownership performs a “directed yield” of the remainder of its processing quantum to the other thread, and execution of the acquiring thread is suspended.
A computer-implemented method of acquiring ownership of a shared resource in a multi-threaded computing environment, comprising:
A computer program product that includes a computer readable storage medium having instructions stored thereon for accessing a shared resource of a computerized system, such that the instructions, when carried out by the computerized system, cause the computerized system to:
A computerized system, comprising:
A computerized system including at least a central processor running a multi-threaded computing environment in which a first thread acquires ownership of a shared resource from another thread, comprising:
Dependencies are inferred from the claim text.