A procedure should be in memory for execution. However, some of the time there is insufficient main memory to hold all the active processes in a timesharing framework. The abundance process are on disk as well as acquired to run dynamically. Swapping is the way toward getting every process in main memory that runs it for some time and after that returning it to the disk.
