Invention Grant
- Patent Title: Adaptive spin-then-block mutual exclusion in multi-threaded processing
- Patent Title (中): 多线程处理中自适应自旋随后块互斥
-
Application No.: US12554116Application Date: 2009-09-04
-
Publication No.: US08046758B2Publication Date: 2011-10-25
- Inventor: David Dice
- Applicant: David Dice
- Applicant Address: US CA Redwood City
- Assignee: Oracle America, Inc.
- Current Assignee: Oracle America, Inc.
- Current Assignee Address: US CA Redwood City
- Agency: Brooks Kushman P.C.
- Main IPC: G06F9/46
- IPC: G06F9/46

Abstract:
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.
Public/Granted literature
- US20090328053A1 ADAPTIVE SPIN-THEN-BLOCK MUTUAL EXCLUSION IN MULTI-THREADED PROCESSING Public/Granted day:2009-12-31
Information query