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

Consider a system that uses 3-bits to denote the page number and 5-bits to denot

ID: 3536375 • Letter: C

Question

Consider a system that uses 3-bits to denote the page number and 5-bits to denote the offset. In this system, memory is accessed in bytes. Suppose a process is executing that has six pages and the following page table:


Virtual page number

Valid Bit

Page Frame Number

Modified Bit

0

1

4

1

1

1

7

0

2

0

1

0

3

1

0

1

4

0

2

0

5

0

1

0


In the following questions, do not handle page faults (if any). Must show work.


A. What is the physical translation for virtual address 158?


B. What is the physical translation for virtual address 53?


C. What is the physical translation for virtual address 195?

Virtual page number

Valid Bit

Page Frame Number

Modified Bit

0

1

4

1

1

1

7

0

2

0

1

0

3

1

0

1

4

0

2

0

5

0

1

0

Explanation / Answer

A . What is the physical translation for virtual address 158?


virtual address 158 in binary (8bits) 10011110

first three bit for page no is 100 = page no 4


since for page 4 valid bit is 0 in page table entry means page is not available in main memory so it is page fault


B What is the physical translation for virtual address 53?


virtual address 53 in binary(8bits) 00110101

first three bit for page no is 001 = page no 1

first three bit for page no is 110 = page no 6


entry for page 6 is not available in page table so page fault


Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote