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 the various ways of authentication techniques in ASP.NET? The Selection of  an authentication provider is as simple as making an entry in  the web.config file of  the

Prepare datamodel, API and more Project Description: Dear all, we would like you to prepare database and an API which can be used in the shopping cart (checkout and delivery

Newly designed APK file for XBMC on an Android TV Box Project Description: We are seeking someone to have knowledge in Android's operating platform. We are a business that ma

ASP.net developer for a mobile project I am looking for an Icenium developer using the Visual Studio extension and jquery. The application will incorporate with an already wr

Project Description: I'm presently seeking at least one more coder that will help me out manage all my concepts and in that way we will share each other's experience and make te

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

I need Beautiful Chatting Application Project Description: I need a beautiful chatting application created that has both private as well as public chat system. The chatting c

Custom Mql4 Code/Fxdreema block Project Description: I need the subsequent code written in mql4 and integrated as custom block(s) in fxdreema: for each trade: check pro

What is SQl injection? This is a Form of attack on the  database-driven Web site in which the attacker executes the unauthorized SQL commands by taking merits of insecure code

Urgently seeking a senior Extjs developer with strong NET developing skill Project Description: Urgently seeking a senior Extjs developer with strong NET developing skill