virtual memory: how does it provide protection

user4592357

Prominent
Apr 8, 2017
3
0
510
it's said that virtual memory solves the problems of raw physical memory, namely lack of memory, fragmentation, and protection. but does it provide a guarantee that two processes don't map to the same physical memory? how does, when "allocating" a space for a new process, virtual memory manager know that "this physical memory is allocated so i can't touch it, but that one isn't so i'll give it to the new process"? is there some kind of mapping stored?
 
Solution
Memory is managed not in bytes by the OS but in pages. This WIKI article gives a lot of background on memory management -- https://en.wikipedia.org/wiki/Page_(computer_memory)


Your question is answered in detail in my tutorial which can be found through a post at the top of this forum