0

Hi
I need help;;

Write a program to simulate a demand paging system. The program should implement the FIFO and LRU page replacement algorithms presented in Chapter 10 of the textbook. Your program input should include:

The name of the page replacement algorithm.
Information about the number of physical page frames in the simulated system.
A path name of the file containing a reference string of virtual page numbers.
Your program should apply the reference string on each algorithm and record the number of page faults incurred by each algorithm. The reference string file contains a simple list of integer numbers separated by white space (possibly new line characters). Each integer refers to a virtual page number that is being referenced on that step. If a particular virtual page is not in the physical memory, you must swap it in. If there is not free space in the physical memory to hold the swapped in page, you must select a page to be replaced according to the applied policy. Your program user interface should be kept as simple as possible.

2
Contributors
1
Reply
3
Views
7 Years
Discussion Span
Last Post by gerard4143
0

Hi
I need help;;

Write a program to simulate a demand paging system. The program should implement the FIFO and LRU page replacement algorithms presented in Chapter 10 of the textbook. Your program input should include:

The name of the page replacement algorithm.
Information about the number of physical page frames in the simulated system.
A path name of the file containing a reference string of virtual page numbers.
Your program should apply the reference string on each algorithm and record the number of page faults incurred by each algorithm. The reference string file contains a simple list of integer numbers separated by white space (possibly new line characters). Each integer refers to a virtual page number that is being referenced on that step. If a particular virtual page is not in the physical memory, you must swap it in. If there is not free space in the physical memory to hold the swapped in page, you must select a page to be replaced according to the applied policy. Your program user interface should be kept as simple as possible.

Please read

http://www.daniweb.com/forums/announcement118-2.html

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.