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

What is jit and its use?

589


What are the two types of java programming?

539


what is deadlock? : Java thread

529


Is array a class in java?

507


When parseint method can be used?

543






What is oops in java?

571


What are the methods available in a class?

589


How do you represent a space in regex java?

524


How do I type unicode?

540


Can we create an object of private class?

552


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

536


What are keywords in programming?

570


Name component subclasses that support painting in java programming?

639


Which is better ascii or unicode?

577


Does list maintain insertion order java?

541