)两者都在等待对方所持有但是双方都不释放的锁,这时便会一直阻塞形成死锁. //存放两个资源等待被使用 public class Resource { public static Object obj1 = new Object(); public static Object obj2 = new Object(); } //线程1 public class DeadThread1 implements Runnable { @Override public void run() { synchr…