Based on the Online Banking Multithreading presentation provided for this assignment, Write a java multithreading program that enables a user to do the following operations:
There are several factors/features might affect the outcome of the program, including using synchronization of the threads, priority for the threads etc.
Your program should allow the use to do the following operations (at least 3 times):
Several Deposits
Several Withdrawal
Several Enquire
For each operation, provide appropriate messages, such as:
Amount of deposit is :????
Your current balance is:????
Amount of withdrawal is:????
Your current balance is:????
Your current balance is:????
Run the program without using synchronization/priority
Run you program with synchronization
Run your program with priority
Provide a summary of your results
when you are not using synchronization/priority,
when using only synchronization,
when using only priority