Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

thread will leave the running state  RSS feed

 
Ranch Hand
Posts: 203
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks ,
Please suggest the ways in which a running thread will leave the running state ...Please explain it in detail..!! Thanks in advance..!!
 
author
Sheriff
Posts: 23392
138
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

Henry
 
Get off me! Here, read this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!