×

ALMOST FAIR BUSY LOCK

  • US 20160139966A1
  • Filed: 09/22/2015
  • Published: 05/19/2016
  • Est. Priority Date: 11/18/2014
  • Status: Active Grant
First Claim
Patent Images

1. A method for managing exclusive control of a shareable resource, the method comprising:

  • publishing a claim non atomically to a lock by a thread that is next to own the lock in an ordered set of threads that have requested to own the lock, the claim comprising a structure capable of being read and written only in a single memory access;

    determining whether the next owning thread has been pre-empted;

    responsive to the determination, the next owning thread of the lock acquiring the lock if the next owning thread has not been pre-empted and retrying acquisition of the lock if the next owning thread has been pre-empted; and

    responsive to the next owning thread being pre-empted, a subsequent owning thread acquiring the lock unfairly and atomically, consistently modifying the lock such that a next lock owner can determine that the next lock owner has been preempted.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×