|
|
|
|
|
by jpab
2065 days ago
|
|
The fences aren't a locking mechanism, at least not on their own. The lower (hardware) level locks are the steps in the cache coherency protocols (potentially including explicit cache line locking signals) that allow an execution unit to, eg, perform a correct atomic compare-exchange operation on a 32/64/128-bit piece of data. See also, eg, the LOCK prefix on x86 instructions. (disclaimer: I only have approximate knowledge of anything, I'm not an expert) |
|