00001 public class NestedMonitorDeadlock 00002 { 00003 00004 public static void main (java.lang.String[] args) 00005 { 00006 Wrapper w = new Wrapper(new Pair()); 00007 (new Thread1(w)).start(); 00008 (new Thread2(w)).start(); 00009 } 00010 }