07-24-2023, 11:54 AM
I have a set and test `xchg` based assembly lock. my question is :
Do we need to use memory fencing (`mfence`, `sfence` or `lfence` ) when using `xchg` instruction ?
Edit :
64 Bit platform : with Intel nehalem
Do we need to use memory fencing (`mfence`, `sfence` or `lfence` ) when using `xchg` instruction ?
Edit :
64 Bit platform : with Intel nehalem