Answer the following questions in details:
1. Describe three mechanisms of performing virtual to physical address translation, along with
prons and cons for each one of them.
2. Regarding the management of physical memory, describe the problems of (i) internal and (ii) ex-
ternal fragmentation. For which one the paged memory mechanism performs better and why?
3. Assume that you are working on a system with paged memory that follows the Copy-on-Write
fork()/exec() model regarding the creation of new processes. Answer with TRUE of FALSE
the following questions, along with a justification for each one of them:
(a) A process sets var=5 and then calls fork(). The child will find that var has a value of 5
if and only if the parent has not modified it after calling fork().
(b) If fptr=&var is the address of var for the parent, cptr=&var is the address of var for the
child, then fptr==cptr.
(c) Right after calling fork(), every read attempt on var from the parent and the clild will
result in accessing the same physical address for both processes.
(d) The command var=3 executed from the parent will result in page fault.
(e) The command var=3 executed from the child will result in page fault.
(f) When a process attempts to write to an address, for which the corresponding page table
entry has no write permissions, will always result in segmentation fault.
(g) When a process attempts to write to an address for which there is no valid area on its
memory map, will always result in segmentation fault.