Suppose i have two threads t1 and t2 are running.How the
main thread will know that the two threads t1,t2 execution
has completed?
Answer Posted / satishkumar vishwakarma
with the help of isAlive() and join() method.
The isAlive returns true when threads are running and
join() will wait till the execution get completed.
| Is This Answer Correct ? | 58 Yes | 1 No |
Post New Answer View All Answers
what is bmg file and how to create that files?what will it contailn?
What is a substitution variable?
How do you do exponents in java?
What is the difference between overriding and overloading in OOPS.
What are void pointers?
What is the difference between the final method and abstract method?
Explain creating threads by implementing runnable class?
How many classes can any class inherit java?
What is meant by anonymous class?
What are the 6 functions?
What do you understand by the term string pool?
Give me an example of array and linked list? Where they can be used?
What is the use of keywords in java?
What is set in java?
What are peerless components?