关于java 中 线程加上synchronized关键字的执行顺序问题 报错
public class TestSync implements Runnable{ int b=100;public synchronized void m1()throws Exception{ b=1000;Thread.sleep(5000);System.out.println("b="+b);} public synchronized void m2()throws Exception{ Thread.sleep(3000);...