Swapping in operating system
Swapping
Swapping is a memory management scheme in which a any process is temporary swapped from main memory to secondary memory. Main memory can be made available for other process it is use to improve main memory utilization. A place in the secondary memory where the swapped out process is stored this space is known as swap space.
Swapping policy is used for priority based scheduling algorithm if a higher priority process arrive and want service, the memory manager can Swap out the lower priority process and then load and execute the higher priority process. When a higher priority process finishes the lower priority process can be swiped in a continuous this type of swapping is sometime called roll out roll in.
Advantages of swapping
- It help the CPU to manage multiple process within a single memory.
- It improves the main memory utilization.
Disadvantages of swapping
- If the swapping algorithm is not good, the composite can increase the number of page lost and decrease the overall processing performance.
- Longer memory access times.
Comments
Post a Comment