CS FundamentalsModerateGATE CS

A 1 GB process is swapped to a disk with 100 MB/s transfer rate and 10 ms latency. Approximately how long does a full swap out followed by a swap in of another 1 GB process take?

  1. A. about 20 s
  2. B. about 10 s
  3. C. about 0.02 s
  4. D. about 2 s

Correct answer: A. about 20 s

Each transfer takes about 1024 MB / 100 MB/s ≈ 10.24 s (latency is negligible), and two are needed: about 20 s. This is why modern systems swap pages rather than whole processes.

More Operating Systems questions

Exams that ask this topic