aspose file tools
The moose likes Threads and Synchronization and the fly likes Using java.util.Timer Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Using java.util.Timer" Watch "Using java.util.Timer" New topic
Author

Using java.util.Timer

Paul Keohan
Ranch Hand

Joined: Mar 15, 2000
Posts: 411
I'm trying to use a Timer with a TimerTask and the concept seems relatively straightforward. I'm having problems trying to start and stop the TimerTask. How can I creat a Thread that I can start, stop, re-start, stop, re-start etc. as many times as I like with no terrible consequences?
I've looked into extending Thread, and using Timer/TimerTask but they all fall short.
Thanks.
Paul
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Using java.util.Timer
 
Similar Threads
Timer
Threading Process Question
Ending a thread from jsp
Thread Scheduler
Problem with Timer and TimerTask