• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Threads Dan Exam Not-runnable vs. ready

 
Gerald Spica
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the Dan exam he uses the terms not-runnable and ready, I was originally thinking of not-runnable as dead, but in the context of some of his answers it seems to have the same definition as ready. Can anyone define these terms?
 
Dan Chisholm
Ranch Hand
Posts: 1865
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gerald,
The Java Language Specification does not define state names, so there is no general consensus on what the names should be. For example, Doug Lea uses the names Created, Runnable, Running, Blocked, and Terminated. Cay Horstmann uses the names New, Runnable, Blocked and Dead. My exam uses the state names that appear in Sun's Java tutorial.
The JLS can not define state names, because Java makes use of threading functionality that existed before Java. In other words, Java really just provides an API to products that were already up and running.
The "Not-Runnable" state can also be called the "Blocked" state. The "Ready" state could also be called the "Runnable" state.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic