This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DeadLockThread { | |
public static Object object1 = new Object(); | |
public static Object object2 = new Object(); | |
public static void main(String args[]) { | |
Thread1 thread1 = new Thread1(); | |
Thread2 thread2 = new Thread2(); | |
thread1.start(); | |
thread2.start(); | |
} |