256 B
256 B
What causes a thread to move into the Sleeping state, and how does it leave?
😴
- Entering: The thread invokes the
sleep()method. - Leaving: It remains blocked until the specified sleep time elapses or it is interrupted.