Is there any difference between a wait() and sleep() in Threads?
I know that a wait()-ing Thread is still in running mode and uses CPU cycles but a sleep()-ing does not use any CPU cycles, right?
Then why do we have both wait() and sleep() and how does their implementation change at a lower level?