What is the total swap time (Swap in & Swap out) in a system for a 15 MB…

2025

What is the total swap time (Swap in & Swap out) in a system for a 15 MB process with a transfer rate of 30 MBps. Given that there is an average latency of 12 ms, however no head seeks involved.

  1. A.

    1.024 sec

  2. B.

    1.00 sec

  3. C.

    0.512 sec

  4. D.

    12 sec

Attempted by 67 students.

Show answer & explanation

Correct answer: A

Solution:

  • Compute transfer time for one direction: 15 MB ÷ 30 MB/s = 0.5 s

  • There are two transfers (swap out and swap in), so total data transfer time = 0.5 s × 2 = 1.0 s

  • Latency: 12 ms per transfer → total latency = 12 ms × 2 = 24 ms = 0.024 s

  • Total swap time = data transfer time + total latency = 1.0 s + 0.024 s = 1.024 s

Final answer: 1.024 seconds

Note: No head-seek time is included, as stated in the problem.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor