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

Suppose the page table for the process currently executing on the processor look

ID: 3821065 • Letter: S

Question

Suppose the page table for the process currently executing on the processor looks like the following. All numbers are decimal, everything is numbered starting from zero, and all addresses are memory byte addresses. The page size is 1, 024 bytes. a. Describe exactly how, in general, a virtual address generated by the CPU is translated into a physical main memory address. b. What physical address, if any, would each of the following virtual addresses corresponds to? (i) 1, 052 (ii) 2, 221 (iii) 5, 499

Explanation / Answer

a) Split binary address into virtual page number and offset, use VPN as index into page table,
extract page frame number, concatenate offset to get physical memory address.


b)(i) 1052
1052 = 1024 + 28 maps to VPN 1 in Page frame number 7,
(7 x 1024+28=7196)

b(ii) 2221
2221 = 2 * 1024 + 173 maps to VPN2, page fault

b(iii) 5499
5499= 5 * 1024 + 379 maps to VPN 5 in Page frame numbe 0,
(0* 1024+379 =379 )

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