[SOLVED] Restart a thread
in
Programming Questions
•
4 months ago
Hi all, hi again
I'm still on my thread things and i wanted to thread.quit() and thread.start() in a loop but i got this :
java.lang.IllegalThreadStateException
I looked it up on the internet and i found out we can't call start() more than one time in a program.
So here is my question : Is there a way to restart a thread?
I've been thinking on a solution :
Thread_FIA cycle = new Thread_FIA(); can i delete this object and create a new one at the same location in memory? cause i dont want to create several objects without freeing memory space.
Thank you
I'm still on my thread things and i wanted to thread.quit() and thread.start() in a loop but i got this :
java.lang.IllegalThreadStateException
I looked it up on the internet and i found out we can't call start() more than one time in a program.
So here is my question : Is there a way to restart a thread?
I've been thinking on a solution :
Thread_FIA cycle = new Thread_FIA(); can i delete this object and create a new one at the same location in memory? cause i dont want to create several objects without freeing memory space.
Thank you
1