How does x86 CPU implement CAS?

前端 未结 0 1998
夕颜
夕颜 2021-01-24 02:20

I have two questions about CAS in cpu level:

  1. Is cmpxchg atomic? If it is, why most use it with lock prefix?
  2. The CAS operation is atomic, how can ABA proble
相关标签:
回答
  • 消灭零回复
提交回复
热议问题