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

A virtual word-addressed memory system has a page size of 1024 words, eight virt

ID: 3692551 • Letter: A

Question

A virtual word-addressed memory system has a page size of 1024 words, eight virtual pages, four physical page frames, and uses the LRU page replacement policy, i.e. when bringing a page from disk, if there is no empty frame, the least recently used (referenced) page is replaced. The page table of the current (and only) process is as follows: (a) What is the main memory address for virtual address 4096? (b) What is the main memory address for virtual address 1024? (c) If a page fault occurs, which page frame will be used for the missing virtual page?

Explanation / Answer

Virtual Memory

            The page table identifies which pages are in main memory, and in which page frames those pages are located. The disk map identifies where all the pages are on the disk. The entire address space is on the disk, but only a subset of it is resident in main memory.

                              The OS is responsible for finding the missing page in the Hard Disk and bringing it into                memory. The OS has to find a page in memory to replace first. The OS uses various    page replacement algorithms to decide which page to evict from memory.

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