Accname
2D-Graphics enthusiast
- Reaction score
- 1,462
Hi, still working with java and lwjgl here.
I am setting up a multi-threaded java application with one thread covering graphics updates and inputs from mouse and keyboards and another doing periodical updates on the games entity objects.
However, when i close the application, whether it is by stopping the jvm in eclipse or by clicking the X-Button of the window (calling System.exit(0)) the threads do not get properly killed.
When opening the task manager i can still see them active, and they stack up the more often i start the application.
I have to manually kill the processes.
So what should i do? I thought the system.exit command would kill all threads in the thread-group "main" but apparently it doesnt. Any ideas?
I am setting up a multi-threaded java application with one thread covering graphics updates and inputs from mouse and keyboards and another doing periodical updates on the games entity objects.
However, when i close the application, whether it is by stopping the jvm in eclipse or by clicking the X-Button of the window (calling System.exit(0)) the threads do not get properly killed.
When opening the task manager i can still see them active, and they stack up the more often i start the application.
I have to manually kill the processes.
So what should i do? I thought the system.exit command would kill all threads in the thread-group "main" but apparently it doesnt. Any ideas?