This project is about Thread. I used lock, unlock, conditon, await, sleep and more...
One way through a loop. Second way through creating two threads. Third way through Fork Join.
The maximum amount of money in the account is 50. We want to implement pull and deposit actions using Threads. Pull and deposit were made under 2 Lock and 2 under two conditions. So that each pull does not reach the minus, and each deposit does not exceed the maximum amount that can be stored.UML
The program runs two threads. This creates a situation that each thread is waiting to hold a lock that the other hold and does not release. So the program stuck.