3 ms·Yes, CMPXCHG is a relatively more expensive instruction. In x86 it is a memory barrier instruction.by ww520 5y agoYes, CMPXCHG is a relatively more expensive instruction. In x86 it is a memory barrier instruction.