Cache 的write back和write through
来源:互联网 发布:正义联盟英雄排名 知乎 编辑:程序博客网 时间:2024/05/02 20:30
为了保证cache和memory的数据一致性,通常有三种方法:
1〉write through:CPU向cache写入数据时,同时向memory也写一份,使cache和memory的数据保持一致。优点是简单,缺点是每次都要访问memory,速度比较慢。
2〉post write:CPU更新cache数据时,把更新的数据写入到一个更新缓冲器,在合适的时候才对memory进行更新。这样可以提高cache访问速度,但是,在数据连续被更新两次以上的时候,缓冲区将不够使用,被迫同时更新memory。
3〉write back:CPU更新cache时,只是把更新的cache区标记一下,并不同步更新memory。只是在cache区要被新进入的数据取代时,才更新memory。这样做的原因是考虑到很多时候cache存入的是中间结果,没有必要同步更新memory。优点是CPU执行的效率提高,缺点是实现起来技术比较复杂。
- Cache 的write back和write through
- Cache 的write back和write through
- Cache 的write back和write through
- Cache 的write back和write-through
- Cache 的write back和write through
- Cache 的write back和write through
- Cache 的write back和write through
- Cache 的write back和write through
- Cache 的write back和write through
- Cache 的write back和write through
- Cache 的write back和write through
- Cache 的write back和write through
- cache的write through和write back
- cache 的两种方式Write Through和Write back
- Write-Through和Write-Back的区别
- write back和write through
- Write-through和Write-back
- Write Through 和 Write Back
- 酷搜CoolSearcher1.1之 使用篇
- session的详细解释
- 一个女人说 (转)
- 数据库设计
- 我理解的多态
- Cache 的write back和write through
- 让你明白什么是ERP(搞笑版)
- 焦距、光圈、快门、景深的基础知识
- ExportDBGridToExcel
- linux source命令
- PYG2006注册机源码(DELPHI)
- 自加运算的误区!
- ASP.NET中实现Flash与.NET的紧密集成
- Velocity 语法