14- Thread Signalling with wait() and notify()

3:35 2 غږوونکي 2 څپرکي 79 برخې

څپرکي

  1. 0:03

    Sometimes we want one thread to wait until some condition becomes true. For example, over here, the second thread has to wait until the done field becomes true. Now we're implementing this using a while loop with an empty body. The problem …

  2. 1:43

    Good. So this is one part of the story. Now we need to go to our first thread in our download file task class. After we call status dot done, we need to notify the other thread that the state of this object is changed. So here we call statu…