on-internet
← Community

Difference between CMPXCHG and BTR/BTS

Stack Overflow ·

The btr instruction is simple and it can lock its shared resource. (Same for bts) Why does the instruction cmpxchg exist? What is the difference between these instructions?

Comments

Sign in or sign up to comment and upvote.

No comments yet.