what is the meaning of System.Threading.Thread.Sleep(2000);
what is the use of this?
advantage, and disadvantage?
System.Threading.Thread.Sleep(2000);
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Apr 25, 2013, 1:03 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 25, 2013, 2:13 AM EDT
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.