Thread.join() in threading, DOT NET Programming

What is Thread.Join() in threading?

There are 2 versions of Thread.Join :-

  • Thread.join().
  • Thread.join(Integer) this returns a Boolean value.

The Thread.Join method is very useful for determining if the thread has completed before starting another task. The Join process waits a specified amount of time for a thread to end. If the thread ends before the time-out, the Join givess true; otherwise it gives False. Once you call Join, the calling procedure stops and waits for the thread to signal that it is done. For Example you have  the "Thread1" and "Thread2" and while executing 'Thread1" you call "Thread2.Join()".So the  "Thread1" will wait until "Thread2" has completed its execution and  again invoke "Thread1". Thread.Join(Integer) ensures that threads do not wait for a long time. If it exceeds a specific time which is provided in integer the waiting thread will start.

Posted Date: 9/21/2012 7:40:31 AM | Location : United States







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

Write discussion on Thread.join() in threading
Your posts are moderated
Related Questions
What are Attributes?  Attributes are declarative tags in code that insert additional metadata into an assembly. There exist two types of attributes in the .NET Framework: Prede

Describe the XmlWriter class. The XmlWriter class is used to write XML to a stream, a file, or a Textwriter object. This class works in a forward-only, non-cached manner. You c

We need programmers and accountants Skills required are .NET, C# Programming, Graphic Design, Commercials, Software Architecture

What is the difference between Class and structure's? The main differences between them are as follows:- 1) The Structure is value types while classes are referen

Project Description: customise samba pos. Just remove samba pos logo and rebrand it. The title in the frame needs to be changed as well as the splash screen at the beginning.

Web-App Developer for Startup Project Description: I am seeking someone who is good at building dynamic sites that will run on both desktops and tablets. The core of the w

What is a workflow? A workflow is a collection of actions (called activities) that presents the model of a process. A workflow gives a way to explain the order of the execution

GAC (Global Assembly Cache) is used where shared .NET assembly resides.Global Assembly Cache is used in the following situations:- 1) When the application has to be shared among

I am looking individuals who have company experience working on Jquery and Microsoft Technology ( MVC 4.5 ), who will take live online session and provide training through Team Vie

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