Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1. Let's assume that shared memory between two processes A and B is realized on the page table level. Which of the following statements

Question 1. 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?

a. 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

b. Shared memory between two processes has to be implemented using COW, and the PTEs have to be configured as read-only mapping

c. 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.

d. The same physical page frame can be mapped at different addresses in the virtual address spaces of A and B.

Question 2. 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?

a. 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.

b. Memory mapped files are always mapped read only, whereas anonymous mappings can be used for writable memory.

c. Anonymous mappings (with modifications) have to be written to a page file or swap device before eviction.

d. 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions