Skip to content
EntityQ250514· pop 8· linked from 21 articles

Load-link/store-conditional

Sign in to save

In computer science, load-linked/store-conditional (LL/SC), sometimes known as load-reserved/store-conditional (LR/SC), are a pair of instructions used in multithreading to achieve synchronization. Load-link returns the current value of a memory location, while a subsequent store-conditional to the same memory location will store a new value only if no updates have occurred to that location since the load-link. Together, this implements a lock-free, atomic, read-modify-write operation.

~5 min read

Article

5 sections
Contents
  • Comparison of LL/SC and compare-and-swap
  • Implementations
  • Extensions
  • See also
  • References

In computer science, load-linked/store-conditional (LL/SC), sometimes known as load-reserved/store-conditional (LR/SC), are a pair of instructions used in multithreading to achieve synchronization. Load-link returns the current value of a memory location, while a subsequent store-conditional to the same memory location will store a new value only if no updates have occurred to that location since the load-link. Together, this implements a lock-free, atomic, read-modify-write operation.

"Load-linked" is also known as load-link, load-reserved, and load-locked.

Available in 8 languages

via Wikidata sitelinks · CC0

Connections

Categories