|
|
- start here
- _____________________________________________
- MAX Allocated Need
- [18, 16, 0, 0] [17, 8, 0, 0] [1, 8, 0, 0]
- [4, 5, 0, 0] [0, 0, 0, 0] [4, 5, 0, 0]
- [2, 2, 0, 1] [0, 0, 0, 0] [2, 2, 0, 1]
- _____________________________________________
- Resources:
- Total: [28, 28, 1, 2] Available: [11, 20, 1, 2]
-
- Executing...
- Request:
- [1, 8, 0, 0]
- Dispatching Done...
- _____________________________________________
- MAX Allocated Need
- [18, 16, 0, 0] [18, 16, 0, 0] [0, 0, 0, 0]
- [4, 5, 0, 0] [0, 0, 0, 0] [4, 5, 0, 0]
- [2, 2, 0, 1] [0, 0, 0, 0] [2, 2, 0, 1]
- _____________________________________________
- Resources:
- Total: [28, 28, 1, 2] Available: [10, 12, 1, 2]
-
- -----Releasing Process------
- _____________________________________________
- MAX Allocated Need
- [18, 16, 0, 0] [0, 0, 0, 0] [0, 0, 0, 0]
- [4, 5, 0, 0] [0, 0, 0, 0] [4, 5, 0, 0]
- [2, 2, 0, 1] [0, 0, 0, 0] [2, 2, 0, 1]
- _____________________________________________
- Resources:
- Total: [28, 28, 1, 2] Available: [28, 28, 1, 2]
-
- Executing...
- Request:
- [4, 5, 0, 0]
- Dispatching Done...
- _____________________________________________
- MAX Allocated Need
- [18, 16, 0, 0] [0, 0, 0, 0] [0, 0, 0, 0]
- [4, 5, 0, 0] [4, 5, 0, 0] [0, 0, 0, 0]
- [2, 2, 0, 1] [0, 0, 0, 0] [2, 2, 0, 1]
- _____________________________________________
- Resources:
- Total: [28, 28, 1, 2] Available: [24, 23, 1, 2]
-
- -----Releasing Process------
- _____________________________________________
- MAX Allocated Need
- [18, 16, 0, 0] [0, 0, 0, 0] [0, 0, 0, 0]
- [4, 5, 0, 0] [0, 0, 0, 0] [0, 0, 0, 0]
- [2, 2, 0, 1] [0, 0, 0, 0] [2, 2, 0, 1]
- _____________________________________________
- Resources:
- Total: [28, 28, 1, 2] Available: [28, 28, 1, 2]
-
- Executing...
- Request:
- [2, 2, 0, 1]
- Dispatching Done...
- _____________________________________________
- MAX Allocated Need
- [18, 16, 0, 0] [0, 0, 0, 0] [0, 0, 0, 0]
- [4, 5, 0, 0] [0, 0, 0, 0] [0, 0, 0, 0]
- [2, 2, 0, 1] [2, 2, 0, 1] [0, 0, 0, 0]
- _____________________________________________
- Resources:
- Total: [28, 28, 1, 2] Available: [26, 26, 1, 1]
-
- -----Releasing Process------
- _____________________________________________
- MAX Allocated Need
- [18, 16, 0, 0] [0, 0, 0, 0] [0, 0, 0, 0]
- [4, 5, 0, 0] [0, 0, 0, 0] [0, 0, 0, 0]
- [2, 2, 0, 1] [0, 0, 0, 0] [0, 0, 0, 0]
- _____________________________________________
- Resources:
- Total: [28, 28, 1, 2] Available: [28, 28, 1, 2]
-
- SUCCESS proc lists [0, 1, 2]
- _____________________________________________
- MAX Allocated Need
- [3, 3, 2, 2] [1, 2, 2, 1] [2, 1, 0, 1]
- [1, 2, 3, 4] [1, 0, 3, 3] [0, 2, 0, 1]
- [1, 3, 5, 0] [1, 2, 1, 0] [0, 1, 4, 0]
- _____________________________________________
- Resources:
- Total: [6, 5, 7, 6] Available: [3, 1, 1, 2]
-
- Executing...
- Request:
- [2, 1, 0, 1]
- Dispatching Done...
- _____________________________________________
- MAX Allocated Need
- [3, 3, 2, 2] [3, 3, 2, 2] [0, 0, 0, 0]
- [1, 2, 3, 4] [1, 0, 3, 3] [0, 2, 0, 1]
- [1, 3, 5, 0] [1, 2, 1, 0] [0, 1, 4, 0]
- _____________________________________________
- Resources:
- Total: [6, 5, 7, 6] Available: [1, 0, 1, 1]
-
- -----Releasing Process------
- _____________________________________________
- MAX Allocated Need
- [3, 3, 2, 2] [0, 0, 0, 0] [0, 0, 0, 0]
- [1, 2, 3, 4] [1, 0, 3, 3] [0, 2, 0, 1]
- [1, 3, 5, 0] [1, 2, 1, 0] [0, 1, 4, 0]
- _____________________________________________
- Resources:
- Total: [6, 5, 7, 6] Available: [4, 3, 3, 3]
-
- Executing...
- Request:
- [0, 2, 0, 1]
- Dispatching Done...
- _____________________________________________
- MAX Allocated Need
- [3, 3, 2, 2] [0, 0, 0, 0] [0, 0, 0, 0]
- [1, 2, 3, 4] [1, 2, 3, 4] [0, 0, 0, 0]
- [1, 3, 5, 0] [1, 2, 1, 0] [0, 1, 4, 0]
- _____________________________________________
- Resources:
- Total: [6, 5, 7, 6] Available: [4, 1, 3, 2]
-
- -----Releasing Process------
- _____________________________________________
- MAX Allocated Need
- [3, 3, 2, 2] [0, 0, 0, 0] [0, 0, 0, 0]
- [1, 2, 3, 4] [0, 0, 0, 0] [0, 0, 0, 0]
- [1, 3, 5, 0] [1, 2, 1, 0] [0, 1, 4, 0]
- _____________________________________________
- Resources:
- Total: [6, 5, 7, 6] Available: [5, 3, 6, 6]
-
- Executing...
- Request:
- [0, 1, 4, 0]
- Dispatching Done...
- _____________________________________________
- MAX Allocated Need
- [3, 3, 2, 2] [0, 0, 0, 0] [0, 0, 0, 0]
- [1, 2, 3, 4] [0, 0, 0, 0] [0, 0, 0, 0]
- [1, 3, 5, 0] [1, 3, 5, 0] [0, 0, 0, 0]
- _____________________________________________
- Resources:
- Total: [6, 5, 7, 6] Available: [5, 2, 2, 6]
-
- -----Releasing Process------
- _____________________________________________
- MAX Allocated Need
- [3, 3, 2, 2] [0, 0, 0, 0] [0, 0, 0, 0]
- [1, 2, 3, 4] [0, 0, 0, 0] [0, 0, 0, 0]
- [1, 3, 5, 0] [0, 0, 0, 0] [0, 0, 0, 0]
- _____________________________________________
- Resources:
- Total: [6, 5, 7, 6] Available: [6, 5, 7, 6]
-
- SUCCESS proc lists [0, 1, 2]
- _____________________________________________
- MAX Allocated Need
- [10, 8, 2, 5] [3, 0, 0, 3] [7, 8, 2, 2]
- [6, 1, 3, 1] [1, 1, 2, 0] [5, 0, 1, 1]
- [3, 1, 4, 2] [2, 1, 2, 1] [1, 0, 2, 1]
- [5, 4, 2, 1] [0, 0, 2, 0] [5, 4, 0, 1]
- _____________________________________________
- Resources:
- Total: [10, 10, 8, 5] Available: [4, 8, 2, 1]
-
- Executing...
- Request:
- [7, 8, 2, 2]
- HOLD: not enough Resource
- Executing...
- Request:
- [5, 0, 1, 1]
- HOLD: not enough Resource
- Executing...
- Request:
- [1, 0, 2, 1]
- Dispatching Done...
- _____________________________________________
- MAX Allocated Need
- [10, 8, 2, 5] [3, 0, 0, 3] [7, 8, 2, 2]
- [6, 1, 3, 1] [1, 1, 2, 0] [5, 0, 1, 1]
- [3, 1, 4, 2] [3, 1, 4, 2] [0, 0, 0, 0]
- [5, 4, 2, 1] [0, 0, 2, 0] [5, 4, 0, 1]
- _____________________________________________
- Resources:
- Total: [10, 10, 8, 5] Available: [3, 8, 0, 0]
-
- -----Releasing Process------
- _____________________________________________
- MAX Allocated Need
- [10, 8, 2, 5] [3, 0, 0, 3] [7, 8, 2, 2]
- [6, 1, 3, 1] [1, 1, 2, 0] [5, 0, 1, 1]
- [3, 1, 4, 2] [0, 0, 0, 0] [0, 0, 0, 0]
- [5, 4, 2, 1] [0, 0, 2, 0] [5, 4, 0, 1]
- _____________________________________________
- Resources:
- Total: [10, 10, 8, 5] Available: [6, 9, 4, 2]
-
- Executing...
- Request:
- [7, 8, 2, 2]
- HOLD: not enough Resource
- Executing...
- Request:
- [5, 0, 1, 1]
- Dispatching Done...
- _____________________________________________
- MAX Allocated Need
- [10, 8, 2, 5] [3, 0, 0, 3] [7, 8, 2, 2]
- [6, 1, 3, 1] [6, 1, 3, 1] [0, 0, 0, 0]
- [3, 1, 4, 2] [0, 0, 0, 0] [0, 0, 0, 0]
- [5, 4, 2, 1] [0, 0, 2, 0] [5, 4, 0, 1]
- _____________________________________________
- Resources:
- Total: [10, 10, 8, 5] Available: [1, 9, 3, 1]
-
- -----Releasing Process------
- _____________________________________________
- MAX Allocated Need
- [10, 8, 2, 5] [3, 0, 0, 3] [7, 8, 2, 2]
- [6, 1, 3, 1] [0, 0, 0, 0] [0, 0, 0, 0]
- [3, 1, 4, 2] [0, 0, 0, 0] [0, 0, 0, 0]
- [5, 4, 2, 1] [0, 0, 2, 0] [5, 4, 0, 1]
- _____________________________________________
- Resources:
- Total: [10, 10, 8, 5] Available: [7, 10, 6, 2]
-
- Executing...
- Request:
- [7, 8, 2, 2]
- Dispatching Done...
- _____________________________________________
- MAX Allocated Need
- [10, 8, 2, 5] [10, 8, 2, 5] [0, 0, 0, 0]
- [6, 1, 3, 1] [0, 0, 0, 0] [0, 0, 0, 0]
- [3, 1, 4, 2] [0, 0, 0, 0] [0, 0, 0, 0]
- [5, 4, 2, 1] [0, 0, 2, 0] [5, 4, 0, 1]
- _____________________________________________
- Resources:
- Total: [10, 10, 8, 5] Available: [0, 2, 4, 0]
-
- -----Releasing Process------
- _____________________________________________
- MAX Allocated Need
- [10, 8, 2, 5] [0, 0, 0, 0] [0, 0, 0, 0]
- [6, 1, 3, 1] [0, 0, 0, 0] [0, 0, 0, 0]
- [3, 1, 4, 2] [0, 0, 0, 0] [0, 0, 0, 0]
- [5, 4, 2, 1] [0, 0, 2, 0] [5, 4, 0, 1]
- _____________________________________________
- Resources:
- Total: [10, 10, 8, 5] Available: [10, 10, 6, 5]
-
- Failed
|