How does virtual memory work?

Technical