内存一致性
In memory hierarchical, it needs to be coherence and consistency. However, they are different things. What are the differences?
在内存分层中,它需要保持一致性和一致性。 但是,它们是不同的东西。 有什么区别?
Memory coherence: a memory system is coherent if any read of a data item returns the most recently written value of that data item (what values can be returned by a read).
内存一致性:如果对某个数据项的任何读取返回该数据项的最新写入值(读取可以返回哪些值),则该内存系统是一致的。
Memory consistency: A memory consistency model for a shared address space specifies constraints on the order in which memory operations must appear to be performed (i.e. to become visible to the processors) with respect to one another.(when a written value will be returned/seen by a read).
内存一致性:用于共享地址空间的内存一致性模型指定了彼此必须执行的内存操作顺序(即对处理器可见)的约束(当返回一个写入值时/通过阅读看到)。
Coherence defines the behavior of reads and writes to the same memory location, while consistency defines the behavior of reads and writes with respect to accesses to other locations.
一致性定义对同一存储位置的读写行为,而一致性定义相对于对其他位置的访问的读写行为。
翻译自: https://www.systutorials.com/whats-the-difference-between-memory-coherence-and-consistency/
内存一致性