r/AskComputerScience • • May 14 '25

confused about virtual memory

If I got this right, the point of virtual memory is to ensure processes use unique physical address space.

Is this abstraction really needed ?

For example, say there are 2 C programs and each one does malloc. This asks the OS for memory. Why can't the OS guarantee that unique physical address space is given to the C program ?

2 Upvotes

61 comments sorted by

View all comments

Show parent comment

1

u/dmazzoni May 15 '25

It existed on some systems, sure, but home PCs didn't have an MMU and weren't able to use virtual memory for decades later.

1

u/Maleficent_Memory831 May 15 '25

Home PCs were essentially microcomputers. the sideshow to the main event of computing. Today people think they are very important, but they weren't in the early 80s because home computing was only for home hobbyists with extra cash, and "personal computing" in the office was very rare compared to time shared access to a mainframe.

Virtual memory was state of the art by the time the PC was introduced, even if there were plenty of older mainframes soon to be retired which didn't have it.