Object o = new Object(); synchronized (o) { try { o.wait(1000); } catch (InterruptedException doh) { } }