Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

#2******** Hi, ********** Please ensure accuracy in your reply and completeness.

ID: 3857462 • Letter: #

Question

#2********

Hi,

**********

Please ensure accuracy in your reply and completeness.

Please use the chart provided in answer.

Thanks....Complete ASAP

**********************

#2

For a virtual memory system with 3 frames and 6 pages, work the page replacement for Optimal (future knowledge), FIFO, and LRU for the following stream of page references:

3,4,1,3,4,3,2,6,3,5,3,2,3,2,1,6,4,3,4,3,6,1,2

Optimal

stream

3

4

1

3

4

3

2

6

3

5

3

2

3

2

1

6

4

3

4

3

6

1

2

1

2

3

Faults

Total Faults

FIFO

stream

3

4

1

3

4

3

2

6

3

5

3

2

3

2

1

6

4

3

4

3

6

1

2

1

2

3

Faults

Total Faults

LRU

stream

3

4

1

3

4

3

2

6

3

5

3

2

3

2

1

6

4

3

4

3

6

1

2

1

2

3

Faults

Total Faults

Optimal

stream

3

4

1

3

4

3

2

6

3

5

3

2

3

2

1

6

4

3

4

3

6

1

2

1

2

3

Faults

Total Faults

Explanation / Answer

Optimal

stream

3

4

1

3

4

3

2

6

3

5

3

2

3

2

1

6

4

3

4

3

6

1

2

1

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

1

2

2

4

4

4

4

4

2

2

2

2

2

2

2

2

2

6

6

6

6

6

6

6

6

3

1

1

1

1

6

6

5

5

5

5

5

1

1

4

4

4

4

4

4

4

Faults

1

1

1

0

0

0

1

1

0

1

0

0

0

0

1

1

1

0

0

0

0

1

1

Total Faults

3

3

3

3

4

5

5

6

6

6

6

6

7

8

9

9

9

9

9

10

11

FIFO

stream

3

4

1

3

4

3

2

6

3

5

3

2

3

2

1

6

4

3

4

3

6

1

2

1

3

3

3

3

3

3

2

2

2

5

5

5

5

5

5

6

6

6

6

6

6

1

1

2

4

4

4

4

4

4

6

6

6

6

2

2

2

2

2

4

4

4

4

4

4

2

3

1

1

1

1

1

1

3

3

3

3

3

3

1

1

1

3

3

3

3

3

3

Faults

1

1

1

0

0

0

1

1

1

1

0

1

0

0

1

1

1

1

0

0

0

1

1

Total Faults

3

3

3

3

4

5

6

7

7

8

8

8

9

10

11

12

12

121

12

13

14

LRU

stream

3

4

1

3

4

3

2

6

3

5

3

2

3

2

1

6

4

3

4

3

6

1

2

1

3

3

3

3

3

3

2

6

3

5

3

2

3

2

1

6

4

3

4

3

6

1

2

2

4

4

4

4

4

3

2

6

3

5

3

2

3

2

1

6

4

3

4

3

6

1

3

1

1

1

1

4

3

2

6

6

5

5

5

3

2

1

6

6

6

4

3

6

Faults

1

1

1

0

0

0

1

1

0

1

0

1

0

0

1

1

1

1

0

0

0

1

1

Total Faults

3

3

3

3

4

5

5

6

6

7

7

7

8

9

10

11

11

11

11

12

13

Optimal

stream

3

4

1

3

4

3

2

6

3

5

3

2

3

2

1

6

4

3

4

3

6

1

2

1

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

1

2

2

4

4

4

4

4

2

2

2

2

2

2

2

2

2

6

6

6

6

6

6

6

6

3

1

1

1

1

6

6

5

5

5

5

5

1

1

4

4

4

4

4

4

4

Faults

1

1

1

0

0

0

1

1

0

1

0

0

0

0

1

1

1

0

0

0

0

1

1

Total Faults

3

3

3

3

4

5

5

6

6

6

6

6

7

8

9

9

9

9

9

10

11