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
Program of Custom Console Output - C# Program Hello guys i need your advice. How can i implement the custom console output in my project. Please recommend some examples.

Video wall control app for Ipad and Win7-64 Project Description: We would like a completely functioning PC and IPAD app to control the functions of a videowall processor.

Very, Very Boards does a big business in shirts, especially for groups and teams. They need a project that will calculate the price for individual orders, as well as a summary for

We need customization of features in Silverlight component plugin I have bought a Silverlight charting component for stock markets. Source code is available in C# besides is wel

Web Developer Project Description: We need of an expert web developer for long term association, please apply with models if you have the subsequent skills: ASP.NET MVC 3

What is the role of the DataSet object in ADO.NET? One of the major components of ADO.NET is the DataSet object, which always remains disconnected from the database and decreas

Change an web Admin panel into multilingual admin panel Project Description: Hello, We have already built a admin panel where only English is the presently supported language

How Output cache functionality is achieved? The Output cache functionality is achieved by using the "OutputCache" attribute on ASP.NET page header. The syntax is shown below:

Question: (a) List three advantages of binding data to controls. (b) The Repeater control uses templates to control formatting. Define the five types of templates supporte

Information Retrieval from Multi-Agent System with Data Mining in Cloud Computing Project Description: I have planned one research model on "Information Retrieval through Mul