I know that Lock
prefix in assembly creates a locked instruction that somehow similar to an atomic operation. But atomic operations in higher level languages normally have a memory ordering too (such as relaxed, released, and acquire memory ordering).
I wonder if these memory ordering will be translated into an assembly instruction or prefix too. Any idea?
Update: My question is about x86.