A Primer on Memory Consistency and Cache Coherence

本文介绍了内存一致性模型和缓存一致性协议。内存一致性定义了多核系统中负载和存储的行为,而缓存一致性确保了多个缓存副本的更新。文章强调了两者之间的区别,SC(顺序一致性)模型是程序员期望的共享内存行为,为理解更弱的内存一致性模型奠定了基础。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

A Primer on Memory Consistency and Cache Coherence 前三章阅读笔记

  1. Memory consistency

    ​ For a shared memory machine, the memory consistency model defines the architecturally visible behavior of its memory system. Consistency definitions provide rules about loads and stores (or memory reads and writes) and how they act upon memory.

    ​ 对于一个共享存储的计算机,存储的一致性模型定义了该计算机的存储系统的结构上可见的行为。一致性的定义为Loads和Stores提供了一些规则,以规定他们如何在主存上执行。

  2. Cache coherence

    ​ As part of supporting a memory consistency model, many machines also provide cache coherence protocols that ensure that multiple cached copies of data are kept up-to-date.

    ​ Cache一致性是存储一致性的一个部分,许多机器会提供cache一致性协议,以保证同一个数据的多个在cache中的副本能够保持最新的状态。

  3. Unlike consistency, coherence (or cache coherence) is neither visible to software nor required. Coherence seeks to make the caches of a shared-memory sys

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值