Differentiate between paging and swapping?



Differentiate between paging and swapping?..

Answer / Princy Singh

Paging is a technique used by Unix-like operating systems to manage the memory of a running process. When a process requires more memory than available in physical RAM, pages of data are swapped out (written) from the RAM to disk storage (known as swap space or virtual memory). When the process needs the paged-out data, it is swapped back into the RAM (paging in). Swapping can cause performance issues due to the time required for reading and writing to the disk.
In contrast, swapping refers to the process of moving entire processes from the main memory (RAM) to the secondary storage (hard drive) when no more room is available in the RAM. This technique allows new processes to be executed but can also result in significant performance degradation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix General Interview Questions

Consider a TCP echo client which blocks on fgets which read input from standard input. If now the corresponding server process crashes, what will client TCP kernel receive? Can the client process receive that? Why or why not? How you solve the above problem?

1 Answers  


How the Kernel handles the copy on write bit of a page, when the bit is set?

1 Answers  


How to create files in unix?

1 Answers  


finding the presence of a word in a list of 'n' files (pattern matching)

2 Answers   TCS,


What are the advantages of unix?

1 Answers  


Why was unix created?

1 Answers  


What are pipes and filters in unix?

1 Answers  


how to use grep command to list find the records of a file containg 10 different strings

5 Answers   IBM,


What does the swapping system do if it identifies the illegal page for swapping?

1 Answers  


What is ps1 and ps2 in unix?

1 Answers  


What is page fault? Its types?

1 Answers  


command to display different lines that are found when compare two files?

2 Answers   HP,


Categories