InterviewSolution
| 1. |
What Are The Requirements For A Swapper To Work? |
|
Answer» The swapper works on the HIGHEST scheduling priority. Firstly it will look for any sleeping process, if not found then it will look for the ready-to-run process for SWAPPING. But the major requirement for the swapper to work the ready-to-run process must be core-resident for at least 2 seconds before swapping out. And for swapping in the process must have been resided in the swap DEVICE for at least 2 seconds. If the requirement is not satisfied then the swapper will go into the WAIT state on that event and it is awaken once in a second by the KERNEL. The swapper works on the highest scheduling priority. Firstly it will look for any sleeping process, if not found then it will look for the ready-to-run process for swapping. But the major requirement for the swapper to work the ready-to-run process must be core-resident for at least 2 seconds before swapping out. And for swapping in the process must have been resided in the swap device for at least 2 seconds. If the requirement is not satisfied then the swapper will go into the wait state on that event and it is awaken once in a second by the Kernel. |
|