dmagda·3 年前·議論Language-specific synchronization primitives such as mutaxes or volatile variable use memory barries to ensure the caches are flushed and/or a CPU core reads from the main memory directly: https://en.wikipedia.org/wiki/Memory_barrier