Process-Scheduling
Question 12
|
Consider n jobs J1, J2,……Jn such that job Ji has execution time ti and a non-negative integer weight wi. The weighted mean completion time of the jobs is defined to be , where Ti is the completion time of job Ji. Assuming that there is only one processor available, in what order must the jobs be executed in order to minimize the weighted mean completion time of the jobs?
Non-decreasing order of ti
|
|
Non-increasing order of wi
|
|
Non-increasing order of witi
|
|
None-increasing order of wi/ti
|
Question 12 Explanation:
Like OS concept, execute job which have more completion time in 1 sec i.e., find wi/ti for every process then arrange it in the decreasing order. So, we get complete time is minimum always.
So answer is the non-increasing order of wi/ti.
So answer is the non-increasing order of wi/ti.
Correct Answer: D
Question 12 Explanation:
Like OS concept, execute job which have more completion time in 1 sec i.e., find wi/ti for every process then arrange it in the decreasing order. So, we get complete time is minimum always.
So answer is the non-increasing order of wi/ti.
So answer is the non-increasing order of wi/ti.