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 is the buffer limit?

1082


When super keyword is used?

1057


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

1173


What is factor r?

1009


How big is a pointer?

1074


what is session in java?

1322


What’s the difference between unit, integration and functional testing?

1164


What is tree node in java?

1007


Write a program in java to find the maximum and minimum value node from a circular linked list.

1149


How do I get a substring?

1032


What is package protected in java?

1024


Is an array a vector?

1120


What is a dot notation?

1102


What is the use of singleton?

1018


What are 3 boolean operators?

1050