1. Let Work and Finish be vectors of length m and n, respectively. Initialize Work = Available and Finish[i] = false for
Posted: Fri Apr 29, 2022 6:50 am
1. Let Work and Finish be vectors of length m and n, respectively. Initialize Work = Available and Finish = false for i = 0,1...1-1. 2. Find an index i such that both a. Finish == false b. Need, < Work If no such i exists, go to step 4. 3. Work = Work + Allocation Finish = true Go to step 2 4. If Finishli == true for all i, then the system is in a safe state.