The processes A, B and C are started at times 0, 5 and 10 miliseconds respectively, in a pure time thrashing system (round robin scheduling) that uses a time slice of 50 miliseconds. The time in miliseconds at which process C would complete its first I/O operation is :
MH SET - 2019, SET Exam - 2019,
Answer: D
Process C completes its first I/O at 1000 ms.
Each process first needs its CPU burst (A 100 ms, B 350 ms, C 200 ms) and then 500 ms of I/O on its own device. With a 50 ms slice and arrivals at 0, 5 and 10 ms, the CPU runs in turn:
| 0-50 A | 50-100 B | 100-150 C |
| 150-200 A (done) | 200-250 B | 250-300 C |
| 300-350 B | 350-400 C | 400-450 B |
| 450-500 C (done) |
A finishes its 100 ms at 200 ms and starts I/O, leaving B and C to alternate. C receives its fourth slice from 450 to 500 ms, completing 200 ms of CPU, and begins its I/O at 500 ms. The I/O takes 500 ms, so it ends at 500 + 500 = 1000 ms. A's first I/O ends at 700 ms, which is the trap in option A.
Please log in or register to report this question.