What is Thread.Sleep() in Threading ?

 Posted by Bharathi Cherukuri on 3/6/2012 | Category: ASP.NET Interview questions | Views: 5327 | Points: 40
Answer:

By calling this Thread.Sleep method, you can pause the Thread's execution.
This method takes an integer value which determines how long the thread should sleep.

Example:

Thread.CurrentThread.Sleep(1000)


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response