Domanda di colloquio di Publicis Sapient

which loop is preferred to use wait() and notify() in multithreading environment?