I am getting IllegalThreadStateException
exception when using following code:
I have already started this thread once(by using thread.start()
) and again trying to start it at another place, so used following code:
thread.interrupt();
thread.start();
But thread.start()
is throwing IllegalThreadStateException
.
What should I use to solve it?
See Question&Answers more detail:os