Back to Browse

wait() and notify() thread code demonstration in Java

2.8K views
Jun 26, 2018
10:43

Show how to have one thread go into a wait state, and then have another thread wake it up (notify it) to do some work. Source code for this example is freely available in GitHub: https://github.com/discospiff/ThreadExamples This video is part of a playlist on threading examples in Java: https://www.youtube.com/watch?v=1BvYJMgIAeU&list=PL73qvSDlAVVi2t3mX_SlrCrjd90OzV7Se

Download

1 formats

Video Formats

360pmp417.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

wait() and notify() thread code demonstration in Java | NatokHD