Hacker News new | ask | show | jobs
by bluetomcat 890 days ago
Modern processors are out-of-order execution beasts. A barrier within a thread serves to enforce some ordering within that thread - that a store will occur after another store, and that a load will occur before another load. Threads know nothing of each other.