I am trying out this sample program on
thread states. I am seeing that the status of the thread is never in the "RUNNING" state. If a thread is inside the run method it should be in running state right?
Output:
Run by :Cat state is RUNNABLE
Run by :
Cow state is RUNNABLE
End of Run method of :Cow
Run by : Dog state is RUNNABLE
End of Run method of : Dog
Current state of thread cat is RUNNABLE
End of Run method of :Cat
Current state of thread dog is TERMINATED
Current state of thread cow is TERMINATED
Current state of thread cat is TERMINATED
Current state of thread dog is TERMINATED
Current state of thread cow is TERMINATED