Allocated | Max | |||||
---|---|---|---|---|---|---|
A | B | C | A | B | C | |
P0:
|
||||||
P1: | ||||||
P2: | ||||||
P3: | ||||||
P4: |
Instructions: Type the values you want to test into the table. The first three columns set how much of each resource is currently allocated to a process. The next three columns set the maximum amount of each resource that a process is allowed to be allocated at any one time. When entering values, keep in mind that you cannot allocate more resources to a process than the maximum amount allowed for that process.
Above, it should show what the safe path is (if any exists). If you want to see how the program safely runs all the processes, press the "run simulation" button. It will show step-by-step how each process is allocated its maximum amount of resources and allowed to finish. After a process is done, it will give up all of its allocated resources.
The pie chart on the top shows how each resource is being used. Each pie chart represents a different resource. You can mouse over the pie chart to see how much each process is currently using that resource. Right under each pie chart, you can set how much of that resource is available in total.
You can also simulate running each process individually, in any order you want. Just press the "run" button next to the process name in the table.