image.png 我顿时觉得**一紧,仔细回顾一下,如果wait()方法不在同步块中,代码的确会抛出IllegalMonitorStateExeception:

NoSuchKey

猜你喜欢

转载自blog.csdn.net/zhuguang10/article/details/89598907