A process arrives at time 3 ms and completes at time 12 ms. If its CPU burst time is 5 ms, what are its turnaround time and total waiting time, respectively?
Options
-
A.
9 ms and 4 ms
-
B.
12 ms and 7 ms
-
C.
5 ms and 9 ms
-
D.
More than one of the above
-
E.
None of the above
Correct Answer (Detailed Explanation is Below)
A.
9 ms and 4 ms
Detailed Explanation
Explanation: Turnaround Time = Completion Time − Arrival Time = 12 − 3 = 9 ms. Waiting Time = Turnaround Time − Burst Time = 9 − 5 = 4 ms. Therefore, the answer is 9 ms and 4 ms.