Consider a system with 14 dedicated devices of the same type. All jobs currently running on this system require a maximum of five devices to complete their execution but they each run for long periods of time with just three devices and request the remaining two only at the very end of the run.
Assume that the job stream is endless and that your operating system’s device allocation policy is a very conservative one: No job will be started unless all the required drives have been allocated to it for the entire duration of its run.
a. What is the maximum number of jobs that can be active at once?
b. What are the minimum and maximum number of devices that may be idle because of this policy?
c. Under what circumstances would an additional job be started? Explain your answer.
Since a very conservative allocation policy is used jobs can only be started when the required number of devices are available.
a. Let the maximum number of jobs that can be active be x
So;
5"\\times" x<=14
x=2 hence maximum number of jobs that can be active =2.
b. Minimum number of idle devices are present when both the jobs are using 5 devices.
So;
= 14 - 2"\\times" 5 = 4.
Maximum number of idle devices are present when jobs are using 3 devices = 14 - 2"\\times" 3 =8.
Comments
Leave a comment