【本人秃顶程序员】synchronized锁住的是代码还是对象

←←←←←←←←←←←← 快!点关注 不同的对象 public class Sync { public synchronized void test() { System.out.println("test start"); try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStac
相关文章
相关标签/搜索