Waiting with "while(...) sleep()" removed with "lock.wait() ... wait.notify()"