Virtual Memory: Individual programs/processes only use "logical memory". They have an address space and access memory with an internal system of numbering. The operating system then translates that to a frame address and checks if that page is loaded up into memory already. If it is, great. If not, this is a page fault. If the proper page can be loaded up from memory, great. If not, due to the address being completely invalid, then usually the program will crash. Now, if the page can be loaded, it takes time, sure, but what if there's no place to put it. Let's say all the frames in memory are already been used by various pages in various processes? You've got to get rid of one of those pages, so that you have a lot to put the page you're trying to read in. So, how do you do that? How do you decide which page should be removed (written to disk and replaced in memory). "Optimal Page Algorithm": You should swap out the page that will be the last one referenced in the future. Problem: you have to be a psychic. FIFO: You keep all the pages in a queue. When a page needs to swapped out, you get rid of the page that's been there longest. There are drawbacks to this system.