×

SCALABLE THREAD LOCKING WITH CUSTOMIZABLE SPINNING

  • US 20140189699A1
  • Filed: 03/04/2014
  • Published: 07/03/2014
  • Est. Priority Date: 11/24/2009
  • Status: Active Grant
First Claim
Patent Images

1. A computer program product for implementing a method for implementing a customized spin for a selected processing thread based on the thread'"'"'s turn, the computer program product comprising one or more computer-readable storage media having stored thereon computer-executable instructions that, when executed by one or more processors of the computing system, cause the computing system to perform the method, 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 selected processing thread; and

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

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