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?
- A. about 20 s
- B. about 10 s
- C. about 0.02 s
- 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
- Interrupt-driven I/O vs polling: a device produces one byte every 1 ms and checking its status register costs 1 µs, while taking an…
- Which statement about DMA is correct?
- A spooler is used for a printer. Which deadlock condition does spooling break for the printer resource, and how?
- Semaphores s = 2, t = 0. Process X runs repeat 2 times { wait(s); print('A'); signal(t); } and Y runs repeat 2 times { wait(t)…
- Shared x = 0. Three threads each execute x = x + 1; once (load, add, store; no locking). What is the set of possible final values?
- Shared x = 0. Thread A executes x = x + 1; twice and thread B executes x = x - 1; twice, with no synchronisation (each statement is load…