Assume a main memory with four page frames (frame A through frame D). Assume tha
ID: 3799417 • Letter: A
Question
Assume a main memory with four page frames (frame A through frame D). Assume that the sequence of pages requested by a process is as shown below.
4, 1, 7, 10, 8, 4, 8, 7, 1, 4, 7, 10, 4, 8, 4, 1, 7, 10
For each reference in the above sequence, identify whether it will cause a page fault (F) or will result in a page hit (H), when using the page replacement algorithm specified in the sub-questions. For each sub-question, use the table provided for your solutions – use the Status column to indicate F or H and the Page Frame column to indicate into which page frame the page has been loaded. Assume that all page frames are initially empty.
Given the above information, complete the table presuming the we are using a First In First Out or FIFOpage replacement policy:
PLEASE SELECT H or F and A,B,C,or D
Page Status Page Frame 4 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 1 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 7 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 10 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 8 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 4 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 8 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 7 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 1 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 4 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 7 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 10 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 4 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 8 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 4 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 1 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 7 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"] 10 [ Select ] ["H", "F"] [ Select ] ["A", "B", "C", "D"]Explanation / Answer
FIFO -first in first out it means the firstly inserted page is pulled out first.
Hits=4.Faults-14
Page Status Page Frame 4 F A 1 F B 7 F C 10 F D 8 F A 4 F B 8 H A 7 H C 1 F C 4 H B 7 F D 10 F A 4 H B 8 F B 4 F C 1 F D 7 F A 10 F BRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.