thread - java多线程之间协作运行时没有任何结果没有任何错误信息,麻烦看下代码?
PHP中文网
PHP中文网 2017-04-18 10:05:02
0
2
722
PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
伊谢尔伦

I read it wrong, your output is not necessarily correct. If wait is executed, there will be no output, and the logic is written incorrectly. Take out the content in else.

刘奇
while(condition){
    wait();
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template