ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2108.04520
16
0

Fast and Fair Randomized Wait-Free Locks

10 August 2021
N. Ben-David
G. Blelloch
    FaML
    LRM
ArXivPDFHTML
Abstract

We present a randomized approach for wait-free locks with strong bounds on time and fairness in a context in which any process can be arbitrarily delayed. Our approach supports a tryLock operation that is given a set of locks, and code to run when all the locks are acquired. A tryLock operation, or attempt, may fail if there is contention on the locks, in which case the code is not run. Given an upper bound κ\kappaκ known to the algorithm on the point contention of any lock, and an upper bound LLL on the number of locks in a tryLock's set, a tryLock will succeed in acquiring its locks and running the code with probability at least 1/(κL)1/(\kappa L)1/(κL). It is thus fair. Furthermore, if the maximum step complexity for the code in any lock is TTT, the attempt will take O(κ2L2T)O(\kappa^2 L^2 T)O(κ2L2T) steps, regardless of whether it succeeds or fails. The attempts are independent, thus if the tryLock is repeatedly retried on failure, it will succeed in O(κ3L3T)O(\kappa^3 L^3 T)O(κ3L3T) expected steps, and with high probability in not much more.

View on arXiv
Comments on this paper