What is Thread.Sleep()
The Thread's execution can be paused by calling Thread.Sleep method. This Thread.Sleep() method takes an integer value which determines how long the thread should sleep. For Example Thread.CurrentThread.Sleep(2000). You can also place a thread into the sleep state by calling Thread.Sleep (System.Threading.Timeout.Infinite) for an indeterminate amount of time .Whenever we want to interrupt this sleep we can call the Thread.Interrupt method.