Thread.sleep(), DOT NET Programming

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.

Posted Date: 9/21/2012 7:38:24 AM | Location : United States







Related Discussions:- Thread.sleep(), Assignment Help, Ask Question on Thread.sleep(), Get Answer, Expert's Help, Thread.sleep() Discussions

Write discussion on Thread.sleep()
Your posts are moderated
Related Questions
What is DBMS? It is a collection of programs that enables user to make and maintain a database. In other words it is general-purpose software that gives the users with the proc

What are ASP.NET session and compare it with classic ASP session The ASP.NET session caches per user session state. It basically uses "HttpSessionState" class. The limitatio

What is garbage collection? Explain the difference among garbage collections in .NET 4.0 and earlier versions. Garbage collection stops memory leaks during execution of pro

How many types of diagrams are there in UML? There are nine types of diagrams in the UML as shown below:- 1)Use case diagram: The use case diagram describe "WHAT" of a

Explain the WSDL. WSDL is a short form for Web Services Description Language, which is used to explain a Web service in terms of the messages that it forms and accepts. The WS

Does a Web service have state? The Web services do not have any method to maintain state. Though, it can access ASP.NET objects, such as application and session if they extend

Is spending in projects constant throughout the project? Generally in initial stage of projects (design and requirement phase) the cost is very less (as you require maximum bus

What are the ways of parsing XML document? The XML parser sits in between the XML document and the application who want to use the XML document. The Parser exposes a set of wel

Explain the new features in ADO.NET Entity Framework 4.0. ADO.NET Entity Framework 4.0 is introduced in .NET Framework 4.0 and contain the following new features: Persisten

What is UML? The Unified Modeling Language (UML) is a graphical language for documenting, specifying, visualizing,  constructing, and  the artifacts of a software-intensive sys