Win a copy of Create an Uber Clone in 7 Days: Build a real world full stack mobile app in Java this week in the Android 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: 23555
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
 
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!