Patent · US Active

Adaptive spin-then-block mutual exclusion in multi-threaded processing

US7594234B1 · kind B1 · utility

59Cited by
65References
25Claims
0Family size

Assignee

Inventor

Key dates

Filing dateJun 4, 2004
Grant dateSep 22, 2009
Priority date
Expiry dateJan 14, 2027

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F9/461
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

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.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.