How can we make a thread sleep for infinite period

Q

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.

2007-10-22, 4446👍, 0💬