1.

How Can You Ensure All Threads That Started From Main Must End In Order In Which They Started And Also Main Should End In Last?

Answer»

We can use join() methodto ensure all threads that started from main must end in order in which they started and also main should end in LAST.In other WORDS waits for this thread to die. Calling join() method internally CALLS join(0);
DETAILED DESCRIPTION : Join() method - ensure all threads that started from main must end in order in which they started and also main should end in last. Types of join() method with programs- 10 SALIENT FEATURES of join.

 

We can use join() methodto ensure all threads that started from main must end in order in which they started and also main should end in last.In other words waits for this thread to die. Calling join() method internally calls join(0);
DETAILED DESCRIPTION : Join() method - ensure all threads that started from main must end in order in which they started and also main should end in last. Types of join() method with programs- 10 salient features of join.

 



Discussion

No Comment Found