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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…