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
Post a Comment