Thread LifeCyle

-> The life cycle of a thread starts when an object of the System.Threding.
Thread class is created and ends when the thread is terminated or completes execution.

The Unstarted State
-> It is the situation when the instance of the thread is created but the start method is not called.

The Ready State
-> It is the situation when the thread is ready to run and waiting CPU cycle.

The Not Runnable State
-> A thread is not executable when
1) Sleep method has been called
2) Wait method has been called
3) Blocked by I/O operations

The Dead State
-> It is the situation when the thread completes execution or is aborted.

Leave a Reply

Your email address will not be published. Required fields are marked *