Question: Let's assume that shared memory between two processes A and B is realized on the page table level. Which of the following statements are true?
Let's assume that shared memory between two processes A and B is realized on the page table level. Which of the following statements are true?
Question 1. True or False? One PTE of process A and one PTE of process B are configured to map to the same physical page frame. The virtual page number in process A and B has to be
Question 2. True or False? Shared memory between two processes has to be implemented using COW, and the PTEs have to be configured as read-only mapping
Question 3. True or False? Shared memory is implemented by mapping the same virtual page number in a PTE of A and in a PTE of B to two different physical addresses.
Question 4. True or False? The same physical page frame can be mapped at different addresses in the virtual address spaces of A and B.
A page fault handler has to deal differently with named entries (memory mapped files, such as code of a program) and anonymous mappings (page not backed by a file, such as the heap and stack of a program) when it comes to eviction and loading of pages from/into physical memory. Which of the following statements are true?
Question 5. True or False? Anonymous mappings are less important and can simply be dropped, while named entries contain important data that always needs to be written back to disk before dropping the page.
Question 6. True or False? Memory mapped files are always mapped read only, whereas anonymous mappings can be used for writable memory.
Question 7. True or False? Anonymous mappings (with modifications) have to be written to a page file or swap device before eviction.
Question 8. True or False? A page that was evicted from physical memory needs to be loaded to exactly the same physical memory address if a user program accesses that page again after the eviction.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
