There is alternative of wait/notify