public void TestPark2() { Thread t = new Thread(TestParkRunnable2); try { t.Start(); LockSupport.UnPark(t); t.Join(); } catch (Exception e) { UnexpectedException(e); } }
public void TestPark() { Thread t = new Thread(TestParkRunnable); try { t.Start(); Thread.Sleep(SHORT_DELAY_MS); LockSupport.UnPark(t); t.Join(); } catch (Exception e) { UnexpectedException(e); } }