求问大大们,我不加syncronized之前跑代码,结果输出的全是6.。。。并没有其他的值,有人遇到过这种情况吗?
因为你一直加着
try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); }