为什么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.