This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Related to thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Related to thread" Watch "Related to thread" New topic
Author

Related to thread

Angela Narain
Ranch Hand

Joined: Apr 14, 2001
Posts: 327
Suppose a thread�s run() method has already executed.
Now the thread is considered to be dead. But can this thread be started again ?
Mikael Jonasson
Ranch Hand

Joined: May 16, 2001
Posts: 158
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.
/Mike
Jyotsna Umesh
Ranch Hand

Joined: May 09, 2001
Posts: 94
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.
Jyotsna
[This message has been edited by Jyotsna Umesh (edited June 19, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Related to thread