multithreading - How can we make a thread to sleep for a infinite time in java? -


pls me understand how can make thread sleep infinite time period .

probably thread.sleep(long.max_value) enough, if want make sure:

while (true) {     thread.sleep(long.max_value); } 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - IIFE: var vs this - is there any difference? -

r - Grow a ffdf data frame on disk gradually -