CPS 356 Lecture notes: Banker's Algorithm Examples


Example 1:

      Total of 10 units of a resource.
      
      Process:   A    B    C   A
      Request:   2    2    4   1
      
      Process     Max     Allocation    Need    Finish
      ------------------------------------------------
      A             4 
      B             4
      C             8
      
      available:
      work:

Example 2:

      Total of 10 units of a resource.
      
      Process:   A    B    C   A
      Request:   4    1    1   2
      
      Process     Max     Allocation    Need    Finish
      ------------------------------------------------
      A            10 
      B             6 
      C             3
      
      available:
      work:

Return Home