Which CPU architectures support Compare And Swap (CAS)?

前端 未结 10 1811
野性不改
野性不改 2020-12-12 15:53

just curious to know which CPU architectures support compare and swap atomic primitives?

10条回答
  •  一向
    一向 (楼主)
    2020-12-12 16:26

    Starting with the ARMv6 architecture ARM has the LDREX/STREX instructions that can be used to implement an atomic compare-exchange operation.

提交回复
热议问题