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 not thread safe?

922


What is computer compiler?

936


How to create a thread in java?

1079


What is a ternary operator in java? What is an interface?

943


What is structure of java heap? What is perm gen space in heap?

1049


How to call one constructor from the other constructor ?

984


What is hash code collision?

1003


Can arraylist contain null values?

951


What is the difference between error and an exception?

1060


Does java support Operator Overloading?

988


Can you explain the cs option of java interpreter?

896


How many types of equations are there?

958


What means public static?

995


Define jit compiler?

1060


Differentiate between static and non-static methods in java.

996