Question: A computer with paged virtual memory system references the pages in following order: 3, 4, 6, 10, 3, 5, 3, 5, 4, 5, 3. Main
A computer with paged virtual memory system references the pages in following order: 3, 4, 6, 10, 3, 5, 3, 5, 4, 5, 3. Main memory can hold four pages at a time. Assume that initially none of the referenced pages is in the main memory. List the pages in main memory after each reference when replacement policy for pages is:
A. FIFO (First in first out: the page that has been in the main memory for the longest time is selected for replacement)
B. LRU (Least recently used the page that was referenced longest time ago is selected for replacement)
How many page replacements (page faults) are required? You can assume that initially main memory does not contain any of the referenced pages.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
