Saturday, 27 April 2013

How can we make a thread sleep for infinite period ? | ASP.Net interview questions

You can also place a thread into the sleep state for an indeterminate amount of time by calling Thread.Sleep (System.Threading.Timeout.Infinite). To interrupt this sleep you can call the Thread.Interrupt method.

No comments: