How can you make a thread sleep for infinite time?
Thread.sleep(System.Threading.Timeout.Infinite)
To interrupt this sleep method you can call-Thread.interrupt method
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Thread.sleep(System.Threading.Timeout.Infinite)
To interrupt this sleep method you can call-
need an explanation for this answer? contact us directly to get an explanation for this answerThread.interrupt method