A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Related to thread
Joined: Apr 14, 2001
Jun 19, 2001 02:54:00
Suppose a thread�s run() method has already executed.
Now the thread is considered to be dead. But can this thread be started again ?
Joined: May 16, 2001
Jun 19, 2001 02:59:00
You can always access the class directly, for instance call the run() method directly. It will hoever not start as a thread, but run in the current thread.
Joined: May 09, 2001
Jun 19, 2001 09:15:00
No, a dead thread can't be restarted by calling run method, however, you can create new instance of the thread and runit by calling start method.
[This message has been edited by Jyotsna Umesh (edited June 19, 2001).]
It is sorta covered in the
JavaRanch Style Guide
subject: Related to thread
Errata to errata of SCJP study guide by K. Sierra & BB
When the execution ends?
Note on Thread
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015