What are the different stages of the life cycle of a thread?

Question:- 

What are the different stages of the life cycle of a thread?

stages of the life cycle of a thread

A thread goes various state in it’s life cycle for example, a thread is born, started, run and dies.

New :- in this stage a new thread born and here it’s life cycle will be start.

Runnable :- after the new born thread , the thread becomes runable.

Waiting :- in this state a thread have to wait if already a thread is executing.

Dies :- after the execution thread comes at the last state that is knows as Terminated(dies) state

Comments

Popular posts from this blog

Programmingshark index 6

Proassignmenthelp index 12

Proassignmenthelp index 27