Aryan PrajapatKnowledge Contributor
Assume a thread has a lock on it, calling the sleep() method on that thread will release the lock?
Assume a thread has a lock on it, calling the sleep() method on that thread will release the lock?
No, the thread might release the locks using notify, notifyAll(), and wait() methods.