Consider a processor that uses virtual memory management (demand paged memory al
ID: 3854382 • Letter: C
Question
Consider a processor that uses virtual memory management (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 (logical) 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 consists of two parts
1.Page number , it tells which page contains the data
2. An offset into Page, tells which byte within the page contains the data.
in our given example,
virtual memory space= 32 words=32 X 4 Bytes= 32 X 4 X 8 Bits = 1024 Bits, here consider 1 word= 4 bytes.
Physical memory space = 16 words = 16 X 4 BYTES= 16 X 4 X8 BITS = 512 Bits
Page Size= 8 words= 8 X 4 Bytes= 8 X 4 X 8 Bits = 256 Bits
also for the page size of n bytes, the number of bits in offset field is log 2n.
virtual memory address
b. Physical Memory Address consists of
1. frame numbers, page size is equals to frame size
2. offset
d. given virtual memory address as 01011.
physical address = offsetmax X FRAME NUMBER PLUS OFFSET
= 32 X 8 PLUS 0 = 256
IN BINARY IT IS
100000000
Page Number Offset number 256 256Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.