I am reading virtual memory and have doubts.
1) How will OS decide, which portion of virtual address to be loaded into physical memory and which not? so that whenever page fault occurs at that time other virtual memory will be loaded.
2) where is page table entry stored for particular process?
3) Two processes (process a and process b) are running in Linux OS. How is OS managing page tables for two processes? So that each process gets different physical address.
4) suppose two processes (process a and process b) are written. in hard disk process a is located at location location_a (virtual address of process a) with size size_a and process b is located at location_b (location_b=location_a+size_a) (virtual address of process a). As these two processes are different in memory location, so these are isolated from each other's memory access. Then How virtual memory is isolating memory to protect memory accessing of other process.