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