3 ms·
> and never really dug into x86 so I'm not very familiar with the corresponding instructions there. The x86 has no corresponding instructions (other than perha
by cesarb 9y ago
> and never really dug into x86 so I'm not very familiar with the corresponding instructions there.
The x86 has no corresponding instructions (other than perhaps the very recent and not yet popular transactional extensions). Instead, the x86 world uses an "atomic compare and exchange" instruction. Wikipedia articles: https://en.wikipedia.org/wiki/Compare-and-swap https://en.wikipedia.org/wiki/Compare-and-swap versus https://en.wikipedia.org/wiki/Load-link/store-conditional https://en.wikipedia.org/wiki/Load-link/store-conditional