Swapping:
Swapping is a process of swapping a process temporarily to a secondary memory from main memory which is fast as compared to secondary memory. But as RAM is of less size so the process that is inactive is transferred to secondary memory. The main part of swapping is transferred time and the total time directly proportional to the amount of memory swapped.

Paging:
Paging is the procedure of memory allocation where different non-contiguous blocks of memory are assigned a fixed size. The size is generally of 4KB. The paging is always performed between active pages.

Difference between Paging and Swapping :
| Swapping | Paging |
|---|---|
| It is procedure of copying out the entire process. | It is a technique of memory allocation. |
| Swapping occurs when whole process is transferred to disk. | Paging occurs when some part of process is transferres to disk. |
| In this process is swapped temporarily from main memory to secondary memory. | In this the contiguous block of memory is made non-contiguous but of fixed size called frame or pages. |
| Swapping can be performed without any memory management. | Non-contiguous Memory Management. |
| Swapping is done by inactive processes. | Only active process can perform paging. |
| It provides the direction regarding the solution. | No suggestion is given regarding the solution in it. |
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
Recommended Posts:
- Difference Between Paging and Segmentation
- Difference between Demand Paging and Segmentation
- Two Level Paging and Multi Level Paging in OS
- Paging in AngularJS
- Paging in Operating System
- Translation Lookaside Buffer (TLB) in Paging
- Multilevel Paging in Operating System
- Difference between SQL and T-SQL
- Difference between 4NF and 5NF
- Difference between 4G and 5G
- Difference between BFS and DFS
- Difference between OOP and POP
- What's difference between MMU and MPU?
- Difference between CRT and LCD
- Difference between PCA VS t-SNE
- Difference between PCI-E and PCI-X
- Difference between PCI and PCI-X
- Difference between Blu-ray and HD DVD
- Difference between C and C++
- Difference between IBM DB2 and MS SQL
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

