In: Computer Science
Assume, you are trying to execute the following jobs with execution times and their varying arrival times are given. These jobs are run on a single processor using pre-emptive SJF algorithm. If the average waiting time of the processes is 4 millisecond, then the value of X is________. Show the equation with values that helps you to find the value of X.
Process No: J1 J2 J3 J4 J5 J6
Arrival time: 0 1 2 3 4 5
Burst Time: 7 5 3 1 2 X
The given data is:
Process No | Arrival Time | Burst Time |
J1 | 0 | 7 |
J2 | 1 | 5 |
J3 | 2 | 3 |
J4 | 3 | 1 |
J5 | 4 | 2 |
J6 | 5 | x |
The average waiting time of all the 6 jobs is 4 ms.
The only possible value of the 'x' is 1.
If you have any doubts reagrding this answer, please reach out through the cooment section.