为什么LRU比FIFO更好? [英] Why is LRU better than FIFO?

查看:764
本文介绍了为什么LRU比FIFO更好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么最近最少使用比FIFO的关系比较好页面文件?

Why is Least Recently Used better than FIFO in relation to page files?

推荐答案

如果您在卸载内存页到磁盘方面的意思是 - 如果你的程序经常访问一个页面,你真的不希望它被分页到磁盘,即使是你访问的第一个之一。在另一方面,如果你还没有访问内存页面数天,这是不太可能会在不久的将来也会如此。

If you mean in terms of offloading memory pages to disk - if your process is frequently accessing a page, you really don't want it to be paged to disk, even if it was the very first one you accessed. On the other hand, if you haven't accessed a memory page for several days, it's unlikely that you'll do so in the near future.

如果这不是你的意思,请编辑您的问题透露更多的细节。

If that's not what you mean, please edit your question to give more details.

这篇关于为什么LRU比FIFO更好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆