while (holder != null) wait(); holder = Thread.currentThread();
holder = null; notify();
if (holder == Thread.currentThread()) holder = null; notify();