Why does C#'s Thread.MemoryBarrier() use "lock or" instead of mfence?

Subscribers:
4,110
Published on ● Video Link: https://www.youtube.com/watch?v=TugcePJSXdw



Duration: 0:00
1 views
0


Why does C#'s Thread.MemoryBarrier() use "lock or" instead of mfence?
I hope you found a solution that worked for you :)
The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA.
Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!

(stackoverflow.com/users/1450890/rook)Rook
(stackoverflow.com/users/224132/peter-cordes)Peter Cordes
A special thanks goes out to the (stackoverflow.com/questions/79218881/why-does-cs-thread-memorybarrier-use-lock-or-instead-of-mfence)Stackexchange community

I wish you all a wonderful day! Stay safe :)
If anything is off, please write me at peter D.O.T schneider A.T ois42.de

memory-barriers assembly x86-64 c# .net-core