Saral Saxena wrote:
Please suggest the ways in which a running thread will leave the running state ...Please explain it in detail..!! Thanks in advance..!!
What is there to explain? Threads leaving the running state for two reasons. One, there is nothing to run. Two, there is another thread that needs to run.
Running means that it is on a CPU/core doing stuff. Otherwise, it is not.