by saagarjha · 2y ago · 0 comments
So in practice LL/SC, in higher level languages, is used to implement CAS, XCHG and other atomic primitives which don't allow taking advantage of the ABA resistance. As an additional downside, you get a weak CAS that you always need to call in an loop.
Wired: livelocks
Crucially, they don’t have to try all interleavings to reach all terminal states, making the enumeration quite fast.