When an application tries to access a page that's not in memory, a page fault occurs and the Memory Manager automatically brings that page into memory. If the page is changed while in memory, the Memory Manager writes the changed page back to the file when it's time to swap the page out of memory.