Jumat, 28 April 2017

What are different thread states in java programming

In this article we will learn about different thread states along with an example program that demonstrates thread life cycle.   Life cycle of a thread refers to all the actions or activities done by a thread from its creation to termination. A thread can be in any one of the following five states during its life cycle: New: A thread is created but didn’t begin its execution. Runnable: A thread that either is executing at present or that will execute when it gets the access to CPU. Terminated: A thread that has completed its execution. Waiting: A thread that

The post What are different thread states in java programming appeared first on Coding Security.


What are different thread states in java programming
read more

Tidak ada komentar:

Posting Komentar