Hacker News new | ask | show | jobs
by ww520 1592 days ago
Yes, CMPXCHG is a relatively more expensive instruction. In x86 it is a memory barrier instruction.