知识卡片
标记缓存保护本轮已请求块
标记策略为缓存块维护一位近期访问标记:
- 命中则标记;
- 缺失时从未标记块中淘汰,若全部已标记则先清除标记。
这样本轮已经请求的块不会在下一轮开始前被逐出。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第27章 在线算法 · 查看原书依据
MARKING maintains a 1-bit attribute mark for each block in the cache. Initially, all blocks in the cache are unmarked. When a block is requested, if it is already in the cache, it is marked. If the request is a cache miss, MARKING checks to see whether
参考来源
- 位置:《算法导论(第4版)》第27章《在线算法》(OEBPS/chapter027.xhtml,文本字符[35000,40000))。
- 结论依据:原文定义缓存时期、标记与对手模型,并给出相应竞争比证明或步骤。
- 原始内容:M ARKING maintains a 1-bit attribute mark for each block in the cache. Initially, all blocks in the cache are unmarked. When a block is requested, if it is already in the cache, it is marked. If the request is a cache miss, M ARKING checks to see whether