If a Timer class is scheduled to perform a certain task repeatedly, and when a scheduled task is finished, who will clean up or terminate or stop that thread? Is there anything that I can do to make sure those finished threads are cleaned up so that they will not occupy resources.
Did you try the JavaDoc for Timer? It talks about how Timers end, good or bad. You might make the Timer a daemon or cancel it at shutdown. I'm thinking I've never done that but never had any problems either. But I'm not so sure about the no problems.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi