×

Scalable thread locking with customizable spinning

  • US 8,997,101 B2
  • Filed: 03/04/2014
  • Issued: 03/31/2015
  • Est. Priority Date: 11/24/2009
  • Status: Active Grant
First Claim
Patent Images

1. A computer program product comprising the following:

  • one or more computer-readable hardware storage devices having stored thereon computer-executable instructions that, when executed by one or more processors of the computing system, cause the computing system to perform a methodfor implementing a customized spin for a selected processing thread based on the thread'"'"'s turn, the method comprising;

    an act of initializing a single integer variable configured to keep track of the following;

    the status of a lock bit indicating whether a lock has been acquired or not, a number of waiting threads, and the status of a thread tracking flag;

    an act of checking the lock bit to determine whether the lock is available for a the selected processing thread;

    upon determining that the lock is available, an act of assigning the lock to the selected processing thread; and

    upon determining that the lock is unavailable, an act of one of said number of waiting threads incrementing the selected thread'"'"'s waiting count by two.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×