I have a weather forecasting program that uses a few threads. These threads stop and start at different times throughout the program so there is no set amount of threads at one time. My problem is when i try and close the main thread the program keeps going because there are still threads alive.
Seeing as the threads which are alive change all the time i was wondering if there was any way to kill all threads.
Any help would be greatly appreciated :)