Page 1 of 1

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
by answerhappygod
1 Let Work And Finish Be Vectors Of Length M And N Respectively Initialize Work Available And Finish I False For 1
1 Let Work And Finish Be Vectors Of Length M And N Respectively Initialize Work Available And Finish I False For 1 (17.03 KiB) Viewed 30 times
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.