




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Spring 2007
Four necessary conditions
1.Let Work and Finish be vectors of length m and n , respectively. Initialize: Work = Available Finish [ i ] = false for i = 1,2, …, n. 2.Find and i such that both: (a) Finish [ i ] = false (b) Needi ≤ Work If no such i exists, go to step 4.
Available = Available - Requesti; Allocationi = Allocationi + Requesti ; Needi = Needi – Requesti;
1.Let Work and Finish be vectors of length m and n , respectively Initialize: (a) Work = Available (b) For i = 1,2, …, n , if Allocationi ≠ 0, then Finish [i] = false; otherwise, Finish [i] = true. 2.Find an index i such that both: (a) Finish [ i ] == false (b) Requesti ≤ Work If no such i exists, go to step 4.