知识卡片

普通读书笔记卡 · 3678.a.3.b

标记缓存区分旧块与新块

理解等级:中级

在一个缓存时期内,旧请求指向该时期开始时已在缓存中的块,也就是上一时期出现过的块;

新请求指向此前未在缓存中的块。

分析时只需关注各块本时期的首次请求,因为标记会防止再次请求失误。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第27章 在线算法 · 查看原书依据

      If block b resides in the cache at the start of epoch i, each request for block b during epoch i is an old request. Old requests in epoch i are for blocks requested in epoch i − 1. If a request in epoch i is not old, it is a new request, and it is for a block not

    参考来源

    - 位置:《算法导论(第4版)》第27章《在线算法》(OEBPS/chapter027.xhtml,文本字符[40000,45000))。 - 结论依据:原文定义缓存时期、标记与对手模型,并给出相应竞争比证明或步骤。 - 原始内容:If block b resides in the cache at the start of epoch i , each request for block b during epoch i is an old request . Old requests in epoch i are for blocks requested in epoch i − 1. If a request in epoch i is not old, it is a new request , and it is for a block not