java.lang.IllegalMonitorStateExceptionwen
问题概述:
为了测试多线程对SystemConfig类中params的影响,延时以查看效果。使用了wait进行测试,也可以使用Thread.sleep。在使用wait时,报java.lang.IllegalMonitorStateException错误。
代码:
private static Map<String, String> params = new Concurrent...
原创
2019-09-29 18:22:17 ·
168 阅读 ·
0 评论