Swapping _ be done when a process has pending I/O, or has to execute I/O operations only into operating system buffers.

  • A. a) must never
  • B. b) maybe
  • C. c) can
  • D. d) must
Correct Answer: A. a) must never
a) must never

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.

Follow us on WhatsApp

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.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top