Without wait() and notify()