Swapping was an older form of memory management. It was moving from/to secondary storage a whole program at a time, in a scheme known as roll-in/roll-out. Now swapping is a fairly close synonym of paging.
teri maa ki chut
Swapping is the one of the efficient regular and authentic approach of memory management. It is the process of swapping of higher priorrity process on the lower priority process. Advantages of swapping are as follows :- 1. higher degree of multiprogramming. 2. dynamic relocation. 3. greater memory utilization. 4. priority based scheduling. 5. less wastage of CPU time. 6. higher performance.
disadvantages of memory segmentation
Page Swapping is not the same as Thrashing. Thrashing is the significant degradation of performance caused by overuse of a computers resource, most commonly virtual memory. Page Swapping is a normal memory management function of most Operating Systems. It occurs any time a computer is running. Thrashing most often takes the form of too much Page Swapping. That occurs when a program needs more virtual memory than the computer can provide at the moment and pages of memory are moved on and off the disc so often that the program running cannot progress in its function. Thrashing is, therefore, not equivalent to Page Swapping and vice versa.
Swapping means to swap the values of two addresses in main memory.
explain the logical& physical memory
Unix system memory management based on swapping . swappin is the process of transferring a block of data from secondary sorage to main memory and vice versa. This done to accommodate larger size of the program, to be executed, in a small sized main memory of the computer. Movement between memory and disk was handled by the upper level of the two-level scheduler, known as the swapper. Swapping from memory to disk was initiated when the kernel ran out of free memory on account of one of the following events :1. a fork system call needed memory for a child process.2. A brk system call needed to expand a data segment.3. A stack became larger and ran out of the space allocated to it.
Swapping files from virtual memory back to RAM is known as multitasking. When a computer with an insufficient amount of RAM uses its virtual memory too often, it can cause the computer to enter Safe Mode.
1. In overlays there is no need for the whole program to reside in main memory .here if say if a program has two functions say f1(50k) and f2(70k) such that they are in mutual exclusion with each other then, the memory of only 70k will be allocated for both the functions and the one that is needed at a particular moment can reside in the main memory . this even saves the memory ,But it is not in case of swapping . here the whole program needs to reside in main memory 2. overlays require careful and time consuming planning while in swapping it is not needed 3. swapping needs to issue system calls for requesting and releasing memory which is not in case of overlays
function of memory management
multitasking this answer is wrong. right answer is thrashing.