1   1  /  1  页   跳转

求个JAVA原代码

求个JAVA原代码

请教下,如何用JAVA实现LRU(最近最少使用页面置换算法(Least Recently Used)) LFU(最近最不常用页面置换算法(Least Frequently Used)) LIFO 的页面置换算法啊?谢谢~
最后编辑2007-06-26 06:11:46
分享到:
gototop
 

谢谢LS的,不过这程序在编译的时候出现了以下的错误,Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method initFrameForFIFO(int) in the type TestReplacement is not applicable for the arguments (int[])
The method FIFOReplace(int) in the type TestReplacement is not applicable for the arguments (int[])
The method initFrameForLRU(int) in the type TestReplacement is not applicable for the arguments (int[])
The method LRUReplace(int) in the type TestReplacement is not applicable for the arguments (int[])

请问是什么原因?
gototop
 

还有,请问temp=((Couple)frame.elementAt(i)).time中的((Couple)frame.elementAt(i)).time是什么意思?到底把什么值传给TEMP呢?这是对象的什么使用方法啊?
gototop
 
1   1  /  1  页   跳转
页面顶部
Powered by Discuz!NT