why OS create the virtual memory for running process
问题 when a program started the OS will create a virtual memory , which divided into stack , heap , data , text to run a process on it.I know that each segment is used for specification purpose such as text saves the binary code of program, data saves static and global variable. My question is why the OS need to create the virtual memory and divide it into the segments ? How about if OS just use the physical memory and the process run directly on the physical memory. I think maybe the answer is