GitHub repository: ojaswitanegi/synchronization
Primary language: Java
Created: 2020-11-25T06:43:23Z
Description: To show synchronized methods in Java's multithreading.  Inplementation of wait() and notify() method in a simple program that takes in an amount and finds if it can be withdrawn from an existing sum. If not, the thread is made to wait until a deposit can be done. The withdrawn or deposited amount is then added to the original amount accordingly.  wait() - Tells the current thread to release the lock and go to sleep until some other thread enters the same monitor and calls notify(). notify() - Wakes up the single thread that is waiting on this object's monitor.