Question: 1. Consider a system that uses virtual memory and paging. There are 32 bytes of virtual memory and 8 bytes of physical memory. Page sizes
1. Consider a system that uses virtual memory and paging. There are 32 bytes of virtual memory and 8 bytes of physical memory. Page sizes are 2 bytes each. The CPU generates address 0x1D. Assume the partial page table is populated as shown below:
For A-D, use the Solutions offered below.
a. What virtual page number is referenced in this address? (in decimal) b. Does a page fault occur (yes/no) c. In which frame is the requested virtual page found? d. What is the final physical address of the requested byte?
| Page | Frame | Valid |
|---|---|---|
| 0 | - | 0 |
| 2 | 0 | 1 |
| 4 | - | 0 |
| 5 | 2 | 1 |
| 6 | - | 0 |
| 8 | - | 0 |
| 10 | - | 0 |
| 12 | 1 | 1 |
| 13 | - | 0 |
| 14 | 3 | 1 |
| 15 | 0 | 0 |
| Solutions |
|---|
| 14 |
| 3 |
| 9 |
| no |
| 0x0C |
| 12 |
| 0x07 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
