Does cmpxchg write destination cache line on failure? If not, is it better than xchg for spinlock? November 5, 2022 by Tarik