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...

Life Cycle of Thread

Answer Posted / guru

When an object is created using Thread class,it is in the
new state, when the start method is called the object goes
into the runnable state from where the scheduler picks up
and starts executing. If that process requires any resource
it is picked and put to the blocked state and when the
process finished that thread is in dead state.
states:
1 new
2 runnable
3 running
4 blocked
5 dead

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can declare a static variable?

1099


How to use arraylist in java netbeans?

1022


Write a java program to count the number of words present in a string?

969


Which method cannot be overridden in java?

978


Can we override protected method in java?

1039


Can we rethrow the same exception from catch handler?

1106


How many bits is a boolean?

1068


what is the difference between process and thread? : Java thread

970


Why java applets are more useful for intranets as compared to internet?

1053


What is mvc in java?

992


What do you mean by an object in java?

1118


Are static members inherited to sub classes?

1119


Is arraylist ordered?

1048


Is alive and join method in java?

1139


What is data and its types?

990