Question: Question 3 . [ 3 marks ] Considering a virtual memory system with paging: Assume that the page size is bytes ) , and each

Question 3.[3 marks]
Considering a virtual memory system with paging:
Assume that the page size is bytes), and each physical and virtual address is
represented by a 16-bit binary or equivalently a 4-digit hexadecimal number. So, the
relationship between virtual memory address and virtual page number should be as follows:
A process was assigned 3 physical frames with frame numbers 5,8, and 10 by the system. This
means that no matter how many virtual pages the process has, all its virtual pages must be
mapped into only the three frames assigned above.
Now it is time spot 100(a larger time value indicates a later point in time). The current content
of the page table is shown below with Table 1, in which the "Access time" column shows the
time of the most recent visit to the virtual page in the corresponding row (e.g,80 indicates that
virtual page 2 is visited most recently at time spot 80).
Page numbers are given in decimal format. The "-" symbol in the virtual page column indicates
that no virtual page has been mapped to the frame that is listed in the same row as the virtual
page. The "-" symbol in the "Access time" column indicates that this physical page is not visited
yet.
Assume that LRU replacement is used for page replacement. This means if all the 3 physical
pages have been mapped with 3 virtual pages, and a 4th different virtual page is accessed, among
the 3 mapped virtual pages, the one with the oldest (smallest) "access time" will be replaced by
the 4th new virtual page.
From now on, the following virtual addresses will be accessed sequentially:
0x2198,0x33F6,0x4769,0x5AB6,0x084D at time 120,150,200,220 and 300 respectively.
Please complete the page table after the above four accesses, by filling in the blanks in Table 2.
Note that you are required to input the page numbers in decimal format.
Table 1: The original page table
Virtual page number Physical page number Access time
2580
5860
-10-
Answer:
Table 2: The page table after the five accesses
Virtual page number Physical page number Access time
________5________
________8________
________10________
Question 3 . [ 3 marks ] Considering a virtual

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!