Compare-and-swap

In computer science, compare-and-swap (CAS) is an atomic instruction used in multithreading to achieve synchronization. It compares the contents of a memory location with a given (the previous) value and, only if they are the same, modifies the contents of that memory location to a new given value.

Source: Wikipedia — Compare-and-swap (CC BY-SA 4.0)

Compare-and-swap

In computer science, compare-and-swap (CAS) is an atomic instruction used in multithreading to achieve synchronization. It compares the contents of a memory location with a given (the previous) value and, only if they are the same, modifies the contents of that memory location to a new given value.

Source: Wikipedia "Compare-and-swap" · CC BY-SA 4.0

Share this article: X · Bluesky
Privacy Policy