1.

What Does The Join() Method In Thread Class Do?

Answer»

The join METHOD allows one THREAD to wait for the COMPLETION of another. If t is a Thread OBJECT whose thread is currently executing, t.join() causes the current thread(the thread which calls t.join(), MOSTLY the main thread) to pause execution until t’s thread terminates.

The join method allows one thread to wait for the completion of another. If t is a Thread object whose thread is currently executing, t.join() causes the current thread(the thread which calls t.join(), mostly the main thread) to pause execution until t’s thread terminates.



Discussion

No Comment Found