Understanding wait, notify and notifyAll using producer-consumer problem
In last post I mentioned about some of the Java Thread’s utility methods. Here I will try to explain wait and notify concept in Threads using classic producer – consumer problem. Wait: It tells current thread to wait till some notifies it to resume execution, myThread.wait(). There is another version of wait which takes milliseconds … Continue reading Understanding wait, notify and notifyAll using producer-consumer problem
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed