December 1999
Intermediate to advanced
816 pages
20h 27m
English
A Java Thread object has four states :
Initialized—Entered by calling a constructor from the Thread class
Runnable—Entered by calling the Thread class's start() method
Nonrunnable—Entered by calling any number of methods, such as wait(), yield(), join(), or suspend() on the Thread object
Dead—Entered by completing the run() method for the Thread object or by calling stop()
Note
A Thread can move from nonrunnable to runnable easily. A Thread that is dead (and eligible for garbage collection if all the references are gone) cannot return to a runnable state.
Read now
Unlock full access