00001 class Process1 extends java.lang.Thread 00002 { 00003 00004 public void run () 00005 { 00006 Deadlock.state = (Deadlock.state + 1); 00007 synchronized (Deadlock.lock1) 00008 { 00009 synchronized (Deadlock.lock2) 00010 { 00011 Deadlock.state = (Deadlock.state + 1); 00012 } 00013 } 00014 } 00015 }