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 |
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?
How the Kernel handles the copy on write bit of a page, when the bit is set?
How to create files in unix?
finding the presence of a word in a list of 'n' files (pattern matching)
What are the advantages of unix?
Why was unix created?
What are pipes and filters in unix?
how to use grep command to list find the records of a file containg 10 different strings
What does the swapping system do if it identifies the illegal page for swapping?
What is ps1 and ps2 in unix?
What is page fault? Its types?
command to display different lines that are found when compare two files?