explain the life cycle of thread?

Answer Posted / srinivas

There are number of stages for executing the Thread.
1.born state
2.runnable
3.running(wait,sleep)
4.blocked(wait,sleep)
5.destroy.

Is This Answer Correct ?    45 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we serialize singleton class?

539


What do you mean by inner class in java? Explain

592


What is finalize()? Is finalize() similar to a destructor?

546


What is substring in java?

621


What is difference in between java class and bean?

574






What is the difference between dom and sax parser in java?

539


Who is the owner of java?

545


When would you use a static class?

590


how does the run() method in runnable work? : Java thread

518


What is static synchronization?

581


What is callable java?

560


How can you share data between two thread in Java?

530


how to create constants in java?

612


why doesn't java run on all platforms?

573


What is an accessor?

1053