Describe life cycle of thread, JAVA Programming

Assignment Help:

Describe life cycle of thread.

Threads follow the single flow of control. A thread is execution in a program. The life cycles of threads are listed below:

Newborn state: After creations of Thread instance the thread is in this state though before start() method invocation. Thread is considered not alive in this stage.

Runnable state: A thread starts its life from Runnable state. After invoking of start() method thread enters Runnable state.

Running state: A thread first enters Runnable state.

Blocked state: A thread can enter in this state due to waiting the resources which are hold by another thread.

Dead state: A thread can be considered dead when its run() method completes. If any thread comes on this state which means it can't ever run again.

 


Related Discussions:- Describe life cycle of thread

I want java web developer finish a webcam site, Java Web Developer A web...

Java Web Developer A web developer is required to finish a webcam site with basic account management and voting functionality. The website can make use of a third party flash

Translate four row solitaires from java swing to android, Translate Four Ro...

Translate Four Row Solitaires from Java Swing to Android. Project Description: There is a product known Four Row Solitaire listed in GitHub. I would like Swing GUI to be repl

Discuss the purpose and use of the java adapter classes, Question: (a) ...

Question: (a) Discuss the Java approach to event processing by explaining how event handling works in Java. Use an example to support your answer. (b) Explain what is a ‘

I need the answer for this question as code, I earn .... Rs per month. if m...

I earn .... Rs per month. if mobile costs 20% of my earning. I will buy in cash. if costs more than 20%. I will buy in 3 months installments without interest. if costs more than 40

Android Development Project, Task I have an Android mobile app project tha...

Task I have an Android mobile app project that I''m trying to get profiles to transfer by connecting to a server at 23.23.175.213 port 1337. I have to send a json string to the se

Develop a graphical display framework, Develop a Graphical Display Framewor...

Develop a Graphical Display Framework Project Description: The intent of this project is to prepare a web based graphical display framework that will display many data points

What is jms, Java Message Service: An interface executed by most J2EE conta...

Java Message Service: An interface executed by most J2EE containers to give point-to-point queueing and topic (publish/subscribe) behavior. JMS is frequently used by EJB's that req

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd