synchronized (obj) { while () obj.wait(); // condition is true, perform appropriate action ... }