Can you invoke the methods on a Thread once it is stopped?

Showing Answers 1 - 6 of 6 Answers

sjf

  • Aug 16th, 2006
 

Yes, why not? It's just a class with methods just like any other class.

  Was this answer useful?  Yes

Amit

  • Aug 21st, 2006
 

yes ,Ofcource we can resume the thread.

  Was this answer useful?  Yes

Anand

  • Aug 22nd, 2006
 

I am assuming the word stopped means The thread has executed the Run method and is now in a dead state...Than we cannot invoke the thread at this stage and Exception will be thrown.. only the mwthods on a thread object can be called when the thread is in running state or in the waiting state or in runnable state.

  Was this answer useful?  Yes

Philip

  • Sep 1st, 2006
 

No u cannot invoke a thread once stop method is called.Once stop method is called thread is in the dead state.

  Was this answer useful?  Yes

philipp

  • Sep 1st, 2006
 

No once a thread is stopped.It goes to the dead state hence we cannot invoke methods.If a thread is in suspend state(depricated) we can invoke methods.

  Was this answer useful?  Yes

BattleLr

  • Jan 31st, 2007
 

People ...get the question right.

1) Once thread is in a dead state, it CANNOT be restarted
2) However, its methods and instances will STILL be accessible.

@philip, dude post answers AFTER getting your facts straight...if your're not sure..
write a test code and then BE sure.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions