• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Related to thread

 
Angela Narain
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic