The arrival time and CPU minutes needed for job 12 and 3 are
The arrival time and CPU minutes needed for job 1,2 and 3 are shown in table 1. Their I/O wait are all 40 percent. What time does each job run to completion?
Please solve it step by step
| Job# | Arrival Time | CPU time |
| 1 | 8:00 | 18 |
| 2 | 8:10 | 16 |
| 3 | 8:20 | 4 |
Solution
First job will start at 8:00 and requires 18 CPU time for completion and equires 40% of its CPU time for I/O wait.The first first jo will be completed at 8:18 o\'clock.
The second will start at 8:18 which is arrived at 8:10 and it will be completed at 8:34 o\'clock.
The waiting time for second job is 8:18-8:10=8 minutes.
The third job will be start at 8:34 which is arrived at 8:20 which requires 4 CPU time.It will be completed at 8:38 o\'clock.
The waiting time for third job is 8:34-8:20=14 minutes.
