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

We consider a program which has the two segments shown below consisting of instr

ID: 673930 • Letter: W

Question

We consider a program which has the two segments shown below consisting of instructions in segment 0, and read/write data in segment 1. Segment 0 has read/execute protection (only read/execute privilege), and segment 1 has read/write protection (only read/write privilege). The memory system is a demand-paged virtual memory system with virtual addresses that have a 4-bit page number, and an 10-bit offset. The page tables and protection are as follows (all numbers in the table are in decimal):

For each of the following cases, either give the real (actual) memory address which results from dynamic address translation or identify the type of fault which occurs (either page or protection fault).
(a) Fetch from segment 1, page 1, offset 3
(b) Store into segment 0, page 0, offset 16
(c) Fetch from segment 1, page 4, offset 28

Explanation / Answer

(a) Fetch from segment 1, page 1, offset 3 page fault
(b) Store into segment 0, page 0, offset 16 page fault
(c) Fetch from segment 1, page 4, offset 28 protection 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