Q:

How can you make a thread sleep for infinite time?

0

How can you make a thread sleep for infinite time?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Thread.sleep(System.Threading.Timeout.Infinite)

To interrupt this sleep method you can call-
Thread.interrupt method

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Top 100 C# interview questions and answers 2022

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is suspend & Resume in Threading?... >>
<< What is thread.sleep() in threading?...