One Shot Swap

The _____ instruction allows atomic compare-and-swap operations, which are fundamental to lock-free algorithms.

A

compare_exchange

B

compare_and_exchange

C

swap_exchange

D

compare_swap