JAVA THREAD MODEL
Life cycle of a Thread
- New : A thread begins its life cycle in the new state. It remains in this state until the start() method is called on it.
- Runable : After invocation of start() method on new thread, the thread becomes runable.
- Running : A method is in running thread if the thread scheduler has selected it.
- Waiting : A thread is waiting for another thread to perform a task. In this stage the thread is still alive.
- Terminated : A thread enter the terminated state when it complete its task.
Thanks for the post. It was interesting to read.
ReplyDeletealso, check java classes in Pune