• In computer science, compare-and-swap (CAS) is an atomic instruction used in multithreading to achieve synchronization. It compares the contents of a memory...
    20 KB (2,606 words) - 23:18, 21 February 2024
  • Double compare-and-swap (DCAS or CAS2) is an atomic primitive proposed to support certain concurrent programming techniques. DCAS takes two not necessarily...
    5 KB (736 words) - 12:42, 23 December 2022
  • Thumbnail for Linearizability
    point of the counter built on compare-and-swap is the linearization point of the first (and only) successful compare-and-swap update. The counter built using...
    24 KB (3,292 words) - 01:43, 14 March 2024
  • restored. As such, an LL/SC pair is stronger than a read followed by a compare-and-swap (CAS), which will not detect updates if the old value has been restored...
    13 KB (1,425 words) - 03:31, 25 June 2024
  • automatic garbage collection. Any lock-free data structure that uses the compare-and-swap primitive must deal with the ABA problem. For example, in a lock-free...
    6 KB (723 words) - 00:15, 9 December 2022
  • of atomic operations (such as test-and-set, fetch-and-add, and compare-and-swap) that both read a memory location and write a new value into it simultaneously...
    3 KB (325 words) - 02:06, 14 February 2024
  • linked list in shared memory using synchronization primitives: Compare-and-swap Fetch-and-add Load-link/store-conditional Several strategies for implementing...
    7 KB (826 words) - 07:38, 7 May 2024
  • scalable lock-free stack utilizing the fine-grained concurrency primitive compare-and-swap. It is believed that R. Kent Treiber was the first to publish it in...
    4 KB (575 words) - 06:13, 14 June 2024
  • to the quantity being considered. For example, an algorithm using compare and swap on a pointer might use the low bits of the address to indicate how...
    10 KB (1,414 words) - 21:46, 24 July 2023
  • contrast, compare-and-swap (32-bit comparand) offers a more general solution to this problem, and in some implementations compare-double-and-swap (64-bit...
    14 KB (2,102 words) - 06:45, 13 January 2024