hansi flick wrote:I found Timer and TimerTask classes, however JavaDoc tells me that TimerTasks should complete quickly, which is not the case for my Thread. Is there a better and easy possibility to achieve the task?
Thanks
TimerTasks should complete quickly because there is only one thread that is dedicated to the tasks -- having a long running task can starve the other tasks.
If you only have a single task in the timer, then it shouldn't be a problem.
Henry