Collaboration diagram for RunBank:

Static Public Member Functions | |
| static void | main (String args[]) throws IOException |
| Main Method for the Bankers Algorithm Project. | |
Static Public Attributes | |
| static int | r |
| The number of Resources the Bank has, taken from System.in. | |
| static int | c |
| The number of Customers the Bank has, taken from System.in. | |
Static Private Attributes | |
| static Thread[] | custThread |
| An array for holding Customer Threads. | |
| static Customer[] | customer |
| An array for holding Customers. | |
The Runbank Class simulates the ineractions that take place between the Customer and the Bank Classes. It contains the main method that initiates the parameters of execution and then starts the appropriate number of threads.
Definition at line 51 of file RunBank.java.
|
|
Main Method for the Bankers Algorithm Project. Recieves input from the user and starts the appropriate number of Customer threads. Once all threads have finished execution the method prints the final Resource and Allocation sets. Definition at line 63 of file RunBank.java. References c, customer, custThread, Bank.printAllocationSet(), Bank.printResourceSet(), and r. Here is the call graph for this function: ![]() |
|
|
The number of Customers the Bank has, taken from System.in.
Definition at line 56 of file RunBank.java. Referenced by main(). |
|
|
An array for holding Customers.
Definition at line 54 of file RunBank.java. Referenced by main(). |
|
|
An array for holding Customer Threads.
Definition at line 53 of file RunBank.java. Referenced by main(). |
|
|
The number of Resources the Bank has, taken from System.in.
Definition at line 55 of file RunBank.java. Referenced by main(). |