Consider the following page reference string: 1, 0, 3, 2, 6, 4, 5, 0, 1, 7, 7, 6, 4, 3, 5, 2, 1, 3, 2, 7 Assuming demand paging with three frames, how many page faults would occur for the following replacement algorithms? Show your work.
(a) LRU replacement
(b) FIFO replacement
(c) Optimal replacement
the frames at the reference are shown as follows:
LRU
3 page fault 1
3 0 page fault 2
3 0 1 page fault 3
2 3 0 page fault 4
6 2 3 page fault 5
4 6 2 page fault 6
5 4 6 page fault 7
0 5 4 page fault 8
1 0 5 page fault 9
7 1 0 page fault 10
6 7 1 page fault 11
4 6 7 page fault 12
3 4 6 page fault 13
5 3 4 page fault 14
2 5 3 page fault 15
1 2 5 page fault 16
3 1 2 page fault 17
7 3 2 page fault 18
Total no of page fault 18
FIFO
3 page fault 1
3 0 page fault 2
3 0 1 page fault 3
2 3 0 page fault 4
6 2 3 page fault 5
4 6 2 page fault 6
5 4 6 page fault 7
0 5 4 page fault 8
1 0 5 page fault 9
7 1 0 page fault 10
6 7 1 page fault 11
4 6 7 page fault 12
3 4 6 page fault 13
5 3 4 page fault 14
2 5 3 page fault 15
1 2 5 page fault 16
3 1 2 page fault 17
7 3 1 page fault 18
Total no of page fault 18
Optimal replacement
3 page fault 1
3 0 page fault 2
3 0 1 page fault 3
6 0 1 page fault 4
4 0 1 page fault 5
5 0 1 page fault 6
5 7 1 page fault 7
5 6 1 page fault 8
5 4 1 page fault 9
5 3 1 page fault 10
2 3 1 page fault 11
2 3 7 page fault 12
Total no of page fault 12
Consider the following page reference string: 1, 0, 3, 2, 6, 4, 5, 0, 1, 7,...
Consider the following page reference string: 5, 3,7,5, 3, 6, 1, 0,4,6,2,0,1,2,7,3,1,4,7,2 Assuming demand paging with three frames, how many page faults would occur for the following replacement algorithms!? LRU replacement FIFO replacement Optimal replacement
9.3 (3 points for correct answer, 7 points for steps) Consider the following page reference string: 6, 1, 5, 5, 4, 6, 2, 6, 0 , 1, 7, 2, 3, 1, 4, 6, 7, 2, 5, 2,. Assuming demand paging with three frames, how many page faults would occur for the following replacement algorithms? • LRU replacement • FIFO replacement • Optimal replacement
Consider the following page reference string for a specific process: 7, 2, 3, 1, 2, 5, 3, 4, 6, 7, 7, 1, 0, 5, 4, 6, 2, 3, 0, 1 Assuming demand paging with 3 frames, determine the page fault rate for each of the following page replacement algorithms: a. LRU replacement b. FIFO replacement c. Optimal replacement
Consider the following page reference string: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6. How many page faults would occur for the following replacement algorithms, assuming one, two, three, four, five, six, or seven frames? Remember all frames are initially empty, so your first unique pages will all cost one fault each. • LRU replacement • FIFO replacement • Optimal replacement
4, 6, 7, 8, 6, 7, 8, 4, 6, 4, 4, 7, 5, 8Assuming demand paging with three frames, how many page faults would occur for the following replacement algorithms? illustrate your work. i. FIFO replacement. ii. LRU replacement.
Consider the following page reference string: A C B D B A E F B F A G E F A Assuming demand paging with four frames, how many page faults would occur for the following replacement algorithms? Remember that all frames are initially empty, so your first unique pages will cost one fault each. Show all of your works. LRU replacement FIFO replacement Optimal (MIN) replacement
Question 7 30 pts Consider the following page reference string: {1,2,3,4,1,5,6,2,1,2,3,7,6,3} Assume that the system has 4 page frames allocated to these 7 pages. Follow the page placement and replacement using the following three replacement algorithms: • LRU replacement • FIFO replacement • Optimal replacement How many page faults will occur for these three algorithms? Assume that all frames are initially empty, so your first unique pages will all cost one fault each USE ENCLOSED TABLES! Show all calculations in...
Assume demand paging with three frames. Consider the following page reference string: 7, 2, 3, 1, 2, 5, 3, 4, 6, 7, 7, 1 If OPT replacement is used, the number of page faults will be a. 8 b. 9 c. 10 d. 7 e.None of the above If LRU replacement is used, the number of page fault will be a. 8 b. 9 c. 10 d. 11 e. None of the above
Consider the following page reference string for a three-frame memory: 6 3 1 5 3 4 3 2 5 4 3 4 5 1 5 3 1 6 3 1 Apply LRU, Clock and FIFO algorithms What will be the number of page faults for each replacement algorithm note that page faults at the beginning are counted?
Consider the following page reference string 43.2,145,5,4,3,2.1,5. How many page faults would occur for the following page replacement algorithms assuming three frames? Initially, all frames are empty. a.FIFO b.LRU C-Optimal