Question: what is the difference between thread sleep and wait?
Answer: The major difference is that wait() releases the lock or monitor while sleep() doesn't releases any lock or monitor while waiting. Wait is used for inter-thread communication while sleep is used to introduce pause on execution, generally. Thread. ... interrupt() it will wake up the sleeping thread.