Computer Architecture: Virtual Memory (Q8) If a process P1 wants to access the d
ID: 3574807 • Letter: C
Question
Computer Architecture: Virtual Memory
(Q8) If a process P1 wants to access the data belonging to a process P2, what the Operating System has to do?
(a) The OS will add a virtual address to the Page Table of P1, referencing the memory location belonging to P2. The OS will also set the Reference Bit of this new virtual address to 0
(b) The OS will add a virtual address to the Page Table of P1, referencing the memory location belonging to P2. The OS will also set the Write Bit of this new virtual address to 0 (read only)
(c) The OS will add a virtual address to the Swap Space of P1, referencing the memory location belonging to P2. The OS will also set the Write Bit of this new virtual address to 0 (read only)
(d) The OS will add a virtual address to the Page Table of P1, referencing the memory location belonging to P2. The OS will also set the Write Bit of this new virtual address to 1 (write and read)
Explanation / Answer
Answer is b
Whenever we are switching from one process to other process there should not be any reference given to the page table of the new process. suppose if we want to switch from p1 to p2 , p1 should not be given any access to the page table of p2.
Whenever we are switching from one process to the other we need to make sure that it has read only property is present(i.e the write bit of new virtual address is set to 0)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.