This content has been marked as final. Show 3 replies
Don't give only half the information. Post the -exact- error you're getting, including the message and the stack trace.
What exactly are you trying to do? Calling Thread.stop( ) is inherently a bad idea (see the Javadocs).
You are getting a IllegalStateException because Thread.stop( ) kills the thread, you would need to create a new thread to resume execution.
If what you are trying to do is pause execution, you probably want to redesign your thread's tasks into smaller chunks that can be launched separately. Alternatively, have the thread check it's interrupted state and if a flag was set block on a monitor until you want it to resume execution.
Thanks for u r suggestion i am getting
at java.lang.Thread.start(Unknown Source)