01 / 12
A program larger than memory still runs
Your phone has 4 GB of memory, yet a 20 GB game runs on it. Does that not seem odd?
It is because the whole program need not be in memory. As long as the part currently executing and the data currently in use are there, the rest can wait on storage.
The one doing the work of choosing what to keep loaded and swapping it when needed is the OS. What this lesson looks at is how that swapping is done, and the machinery the OS keeps for it.
phone memory 4Gthe game 20G-> not all of it is loaded