知识卡片

普通读书笔记卡 · 3627

强制缓存未命中不可避免

理解等级:初级

缓存未装满时,请求一个尚不在缓存中的块会产生强制未命中:此前任何替换选择都不可能让该块已在缓存中。

它与缓存装满后的替换决策未命中不同,后者才有选择牺牲哪个旧块的空间。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第15章 贪心算法 · 查看原书依据

      A cache miss that occurs while the cache holds fewer than k blocks—that is, as the cache is first being filled up—is known as a compulsory miss, since no prior decision could have kept the requested block in the cache.

    参考来源

    - 位置:《算法导论(第4版)》第15章《贪心算法》(OEBPS/chapter015.xhtml,文本字符[50000,55000))。 - 结论依据:15.4 节定义缓存尚不足 k 块时的未命中为 compulsory miss,因为此前没有逐出选择能保留该新请求块;装满后才需决定逐出对象。 - 原始内容:A cache miss that occurs while the cache holds fewer than k blocks—that is, as the cache is first being filled up—is known as a compulsory miss , since no prior decision could have kept the requested block in the cache.