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. 2302.00135
27
8

Durable Algorithms for Writable LL/SC and CAS with Dynamic Joining

31 January 2023
P. Jayanti
S. Jayanti
Sucharita Jayanti
ArXivPDFHTML
Abstract

We present durable implementations for two well known universal primitives -- CAS (compare-and-swap), and its ABA-free counter-part LLSC (load-linked, store-conditional). All our implementations are: writable, meaning they support a Write() operation; have constant time complexity per operation; allow for dynamic joining, meaning newly created processes (a.k.a. threads) of arbitrary names can join a protocol and access our implementations; and have adaptive space complexities, meaning the space use scales in the number of processes nnn that actually use the objects, as opposed to previous protocols which are designed for a maximum number of processes NNN. Our durable Writable-CAS implementation, DuraCAS, requires O(m+n)O(m + n)O(m+n) space to support mmm objects that get accessed by nnn processes, improving on the state-of-the-art O(m+N2)O(m + N^2)O(m+N2). By definition, LLSC objects must store "contexts" in addition to object values. Our Writable-LLSC implementation, DuraLL, requires O(m+n+C)O(m + n + C)O(m+n+C) space, where CCC is the number of "contexts" stored across all the objects. While LLSC has an advantage over CAS due to being ABA-free, the object definition seems to require additional space usage. To address this trade-off, we define an External Context (EC) variant of LLSC. Our EC Writable-LLSC implementation is ABA-free and has a space complexity of just O(m+n)O(m + n)O(m+n). To our knowledge, we are the first to present durable CAS algorithms that allow for dynamic joining, and our algorithms are the first to exhibit adaptive space complexities. To our knowledge, we are the first to implement any type of durable LLSC objects.

View on arXiv
Comments on this paper