abstract:Memory ordering is a group of properties of the modern microprocessors, characterising their possibilities in memory operations reordering. It is a type of out-of-order execution.
LOCK-BasedCriticalSections: Although a LOCK-UNLOCK pair does not act as a fullmemorybarrier, these operations doaffectmemory ordering. Consider the followingcode.