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
Project Description: We are looking for same usability/options of coachup.com thus, we will have different own UI design. Conditions: State your price and please describe/

Question: (a) One of the advantages of the Session object is that it prompts to you when a user session begins. In this context, a user fills in a registration form and the Se

Asp .net Facebook app project completion Project Description: We are a small development house in Singapore, and have a project which is 90 percent complete; thus our previou

Briefly explain how server form post-back works ?  Post Back: The process in which a Web page sends data back to the similar page on the server. View State : View State i

Mention different types of data providers available in .NET Framework. .NET Framework Data Provider for SQL Server - Give access to Microsoft SQL Server 7.0 or later version. I

Describe the rules and regulations that must be followed whereas creating a well-formed XML document. The following are the rules and regulations that are essential to follow w

how to access global resource file using javascript

I have a site that's already fully developed, and need to solve some small issue (Text editor posting error, and a Server error caused by some Nhibernate code.) Server Error in

Find out the Factorial - C# Program I've been trying so many codes for this but those codes didn't work well. Please write the code for find out the factorial of an integer nu

Script for auto seating poker Project Description: Not just like that though. I need a similar program that can scan during poker lobbys (pokerstars, ipoker, full tilt and on