How can we make a thread sleep for infinite period ?

Q

.NET INTERVIEW QUESTIONS - How can we make a thread sleep for infinite period ?

✍: Guest

A
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.

2009-11-24, 4530👍, 0💬