Suppose two jobs, each of which needs 10 minutes of CPU time, start…

2015

Suppose two jobs, each of which needs 10 minutes of CPU time, start simultaneously. Assume 50% I/O wait time. How long will it take for both to complete, if they run sequentially?

  1. A.

    10

  2. B.

    20

  3. C.

    30

  4. D.

    40

Attempted by 254 students.

Show answer & explanation

Correct answer: D

Each job requires 10 minutes of CPU time with a 50% I/O wait rate. This implies the CPU is utilized only half the time, so the actual wall-clock duration per job is 10 divided by 0.5, equaling 20 minutes. Since the jobs run sequentially rather than in parallel, their durations add up to a total of 40 minutes for both.

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

Explore the full course: Isro