Question: double synchronized statement for one reference
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!"); } } } }
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!"); } } } }