Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the features of junit?

1043


List two java ide’s?

1044


What does exp mean in math?

991


What are the 6 functions?

974


Explain about anonymous inner classes ?

1077


Can we have any code between try and catch blocks?

988


How is hashcode calculated in java?

1033


Explain about static nested classes in java?

1064


What is class forname?

1020


How do you sort in java?

977


Is zero a positive integer?

1063


worst case complexities of Quick sort and Merge sort.

1030


What is class and its types?

1036


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

1152


Differentiate storage classes on the basis of their scope?

1171