• Post Reply Bookmark Topic Watch Topic
  • New Topic

thread will leave the running state  RSS feed

 
Saral Saxena
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..!!
 
Henry Wong
author
Sheriff
Posts: 23280
125
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!