Swapping a process with pending I/O or one that is executing I/O operations into operating system buffers is not advisable because:
Inconsistency: If a process is swapped out while waiting for I/O, the I/O completion might occur while the process is not in memory. This can lead to data inconsistency.
Overhead: Continuously swapping processes in and out due to I/O operations can introduce significant overhead, impacting system performance.
To avoid these issues, operating systems typically employ techniques like buffering or double buffering to handle I/O operations without requiring process swapping.
If you think there is any confusion in the given MCQs, you can comment below.
docmcqs.com is Pakistan's No.1 online platform for preparing for all types of exams including PPSC, FPSC, KPSC, SPSC, Ministry of Defence, and for one-paper MCQs. This includes Pedagogy MCQs, general knowledge MCQs, current affairs MCQs, and much more.