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: I am trying to connect my marketplace website with Stripe/connect. I have 5 or 6 scripts already written that just need to be adjusted so they will work: 2

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

The project aims at converting a rough hand drawn diagram to a neat diagram. Is it a good project for B.Tech level?Please tell how to go about it??

I need mt4 programmer Project Description: I'm seeking a professional programmer to teach me MQL I have few years experience in manual trading but totally NONE in MT4 / EA

What is Cache Callback? The Cache object is dependent on its dependencies for example time based, file based, etc...The Cache items remove the object when cache dependencies ch

What are major events in GLOBAL.ASAX file? The Global.asax file, which is derived from the HttpApplication class, maintains a pool of the HttpApplication objects, & assigns the

Give a small explanation of all Elements in the diagram. Action State: - This is a type of state that has an internal action and one outgoing event that would do the int

What is an object? They are instance of classes. It is a basic unit of a system. An object is an entity that has attributes, behavior, and identity. Attributes and behavior of

What is difference between System.String and System.StringBuilder classes? String and StringBuilder classes are used to store string values but the dissimilarity in them is tha

What is the difference between DELETE TABLE and TRUNCATE TABLE commands? Following are differences between delete & truncate commands:- 1)The DELETE TABLE syntax logs the de