Java or C++
You need to implement the following page replacement algorithms and apply those on a small input dataset and the give file (the detail instruction is given in the next page):
LRU(Least recently Used)
LFU(Lease frequently Used)
The display should be in table for like this and have the number of page faults at the end. It doesn't have to have the lines like the one below.
Page # | 1 | 2 | 3 | 4 | 1 | 2 | 5 | 1 | 2 | 3 | 4 | 5 |
| 1 | 1 | 1 | 1 |
|
| 5 | 5 | 5 | 5 | 4 | 4 |
|
| 2 | 2 | 2 |
|
| 2 | 1 | 1 | 1 | 1 | 5 |
|
|
| 3 | 3 |
|
| 3 | 3 | 2 | 2 | 2 | 2 |
|
|
|
| 4 |
|
| 4 | 4 | 4 | 3 | 3 | 3 |
Number of page fault: 10
I will include the data input file that it is suppose to read from and do the calculations for.
13 years ago
20
Answer(0)
Bids(1)
other Questions(10)
- 4.5-1.5(6m+2)=6
- 5. (TCO4) As a manufacturing firm builds a plant in Bolivia, it also has to build an airstrip so that...
- Taxation I Homework
- why must the compass opening be greater than 1/2 the length of the segment
- A spring with a force constant of 52 N / m has a relaxed length of 2.45 m. When a...
- w In your own words, why is it important to define the scope and perform requirement analysis for the project? rite 400-600
- 8y=192 whats y?
- Phase 1 Introduction to Algebra
- At this rate, how many mini vans would pass Luann if 90 vehicles passed her?
- 2x+y=1 2x+y=-3