abinash
Explain life cycle of a Thread?
by Abinash Prusty - Monday, 19 March 2012, 11:07 PM
 

Explain life cycle of a Thread?

Picture of siva nadavati
Re: Explain life cycle of a Thread?
by siva nadavati - Tuesday, 20 March 2012, 02:56 AM
 

A thread can aquire following states in life cycle

1.Runnable : when a new thread calls start() method, it will undergo runnable state.

2.Not Runnable : when a thread calls sleep() or wait() method , it will undergo not runnable state. There is another case when a Thread Blocked on IO it'll also undergo not runnable state.

3.Dead : when run() method execution is over the thread is going to die.


Skip Navigation

Navigation

Skip OpenGurukulSkip Settings

Settings