章次 章 次
-
0:03章章章 章章 章 次 第一章 章 第一章 一章 1: Sometimes we want one thread to wait until some condition becomes true. 99s · Speaker 1
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 …
-
1:43章章章 章章 章 次 第一章 章 第一章 一章 2: Good. So this is one part of the story. 109s · Speaker 2
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…