Hi,
I have a pretty simple question. I have written a multithreaded program and it seem to work pretty well. However, when the threads are done their execution, the program does not seem to finish, but just hangs. I thought that when the threads finished their execution, the resources were simply absorbed back to the system.
If I use a System.exit(0) call after the thread.start() call, the program immediately terminates which is not what I want.
Does anyone have any tips on how to proceed.
thanks
I have a pretty simple question. I have written a multithreaded program and it seem to work pretty well. However, when the threads are done their execution, the program does not seem to finish, but just hangs. I thought that when the threads finished their execution, the resources were simply absorbed back to the system.
If I use a System.exit(0) call after the thread.start() call, the program immediately terminates which is not what I want.
Does anyone have any tips on how to proceed.
thanks