package ch.hslu.exercises.sw06.ex1; public final class DemoWaitPool { private static final Object LOCK = new Object(); public static void main(final String args[]) throws InterruptedException { synchronized (LOCK) { final MyTask waiter = new MyTask(LOCK); new Thread(waiter).start(); Thread.sleep(1000); Thread.yield(); LOCK.notify(); } } }