【本人禿頂程序員】synchronized鎖住的是代碼還是對象

←←←←←←←←←←←← 快!點關注 不同的對象 public class Sync { public synchronized void test() { System.out.println("test start"); try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStac
相關文章
相關標籤/搜索