what is the meaning of System.Threading.Thread.Sleep(2000);
what is the use of this?
advantage, and disadvantage?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Apr 25, 2013, 6:13 AM
hi,
it Blocks the current thread for the specified number of milliseconds.
Please refer
http://msdn.microsoft.com/en-us/library/d00bd51t.aspx
http://www.dotnetperls.com/sleep
http://msmvps.com/blogs/peterritchie/archive/2007/04/26/thread-sleep-is-a-sign-of-a-poorly-designed-program.aspx
hope this will help you.
VulpesPosted Apr 25, 2013, 5:03 AM