This input can never come and thus the join will wait forever for the missing input and will not execute-an obvious deadlock situation.
此输入将永远不会出现,因此join将一直等待缺少的输入而无法执行。在此情况下,很明显会发生死锁。
To test GUIs, you need a way to simulate user input, wait until the generated events have been broadcast to all listeners, and then check the result as the GUI would appear to the user.
要测试GUI,你需要一种可以模拟用户输入的方法,一直等到生成的事件散播给所有侦听者,然后检查结果,就像GUI响应用户一样。
The client stays in a wait state, listening for notifications and user input to end the program.
客户机保持在等待状态,侦听通知和结束程序的用户输入。
应用推荐