Consider a processor that uses the demand paged memory allocation scheme. Assumi
ID: 3854108 • Letter: C
Question
Consider a processor that uses the demand paged memory allocation scheme. Assuming that user memory space is 32 words, physical memory is 16 words, and memory page size and memory block size are 8 words long each, answer the following questions: a) Formulate the virtual memory address by identifying its fields and number of bits per field. b) Formulate the physical memory address by identifying its fields and number of bits per field. c) Give the physical memory address corresponding to the following virtual memory address 01011 using information provided in the following page table.Explanation / Answer
a) Virtual Memory Address = log232 = 5
b) Physical Memory Address = log216 = 4
c) Number of pages =32/8 =4
Number of frames =16/2 =2
0000 - 0011 is Page 1
0100 - 0111 is Page 2
1000 - 1011 is Page 3
1100 - 1111 is Page 4
Out of which Page 1 and page 3 are present in Physical memory
And our address 01011 is in Page 3 which is Present in Block 0 ,i.e, 0000 -0011 in Physical memory
Hecnce 01011 corressponds to the address 0011 in physical memory
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.