How to use thread.sleep() properly in Java? - Stack Overflow
https://stackoverflow.com/questions/29115634/how-to-use-thread-sleep-properly-in-java
WebMar 18, 2015 · If the thread is interrupted, the sleep period will not be finished completely. I am wondering if there's no logic in my code to interrupt the thread, could JVM interrupt a thread which is sleeping? If so, how to ensure a thread sleep to the end of its specified period? And what's the best practice to use thread.sleep() method?
DA: 11 PA: 30 MOZ Rank: 18