Conditions { public void displayContion() { Thread threadFather = new Thread("主线程") { public void run() { displayNumber(Thread.currentThread().getName()); } }; threadFather.start(); Thread threadChild = new Thread("子线程") { public void run() { displayNumber(Thread.currentThread().getName()); } ; }; threadChild.start(); }  static void main(String[] args); void displayContion(); void displayNumber(String name); public AtomicInteger atomicInteger; public Lock lock; public Condition condition; volatile boolean flag; }
@PerfTest(invocations = 30) @Test public void testDisplayContion() throws Exception { new Conditions().displayContion(); }