Question: Consider a virtual memory system based on a page size of 1024 bytes. Assume furthermore that the system supports 8 virtual pages and 4
Consider a virtual memory system based on a page size of 1024 bytes. Assume furthermore that the system supports 8 virtual pages and 4 physical pages. (a) Determine the number of address bits needed by programs using this system. (b) For each of the virtual addresses 0, 3728, 1023, 1024, 4096, and 7800, determine the virtual page number and associated page offset. Then use the page table below to determine the physical page number and from that, the complete physical address. Label a virtual address as "page fault" if the virtual address hasn't been loaded. Virtual page 0 1 2 3 4 5 6 7 Address range 0-1023 1024-2047 2048-3071 3072-4095 4096-5119 5120-6143 6144-7167 7168-8191 Page frame 3 1 Not loaded Not loaded 2 Not loaded 0 Not loaded
Step by Step Solution
3.41 Rating (160 Votes )
There are 3 Steps involved in it
a Determine the number of address bits needed by programs using this system Since the system has 8 virtual pageswe need 3 bits to represent the virtual page number 23 8 Similarlysince the system has a ... View full answer
Get step-by-step solutions from verified subject matter experts
