Life Cycle of Thread

Answer Posted / banti

Thread has following life cycles:
1.Ready to Run
2.Runnable
3.Running
4.Blocked/Waiting
5.Dead

Once thread is dead there is no way it coming back to
running state.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort in java?

598


What is += mean in java?

547


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

857


What is meant by interface?

566


What does indexof return in java?

540






What is thread life cycle in java?

586


Why is the main method declared static?

588


If an object is garbage collected, can it become reachable again?

548


Is main a keyword in java?

542


What is an enumeration?

574


What is local declaration?

495


What is thread safe in java?

555


Can we make a constructor final?

552


Is set ordered in java?

576


How to stop a thread in java? Explain about sleep () method in a thread?

588