2010-09-05から1日間の記事一覧
Do you think this causes deadlock? class Hello { public static void main(String[] args) { Hello t = new Hello(); synchronized(t) { synchronized(t) { System.out.println("made it!"); } } } } Answer 14.19 The synchronized Statement