A memory barrier is a special processor instruction that imposes restrictions on the order in which memory accesses become visible to other processors/cores in a multi-processor or multi-core system.
This tag is for questions that are about the consequences of memory barriers, or whether or not a memory barrier is needed.