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 - Function overwritting -

php - Find a regex to take part of Email -