Class DeadLockBase


  • public class DeadLockBase
    extends java.lang.Object
    This is test is designed to simulate various deadlock cases using either ReentrantLock instances or synchronized objects.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void create2ObjectDeadlock​(boolean reentrant1, boolean reentrant2)  
      static void create3ObjectDeadlock​(boolean reentrant1, boolean reentrant2, boolean reentrant3)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create2ObjectDeadlock

        public static void create2ObjectDeadlock​(boolean reentrant1,
                                                 boolean reentrant2)
      • create3ObjectDeadlock

        public static void create3ObjectDeadlock​(boolean reentrant1,
                                                 boolean reentrant2,
                                                 boolean reentrant3)