Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Threads
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Threads and Synchronization
Timer thread gets Exception when the Syste time is changed
Pranav Thipse
Greenhorn
Posts: 2
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
following is code of simple timer
thread
it exits when system time is updated
int delay = 1000; // delay for 3 sec. int period = 1000; // repeat every 1 sec. timerioim = new Timer(); timerioim.scheduleAtFixedRate(new TimerTask() { public void run() { try{ setDefaultIOIM(); }catch(Exception e) { e.printStackTrace(); } } }, delay, period);
what should i do to prevent it
thanks in advance
pranav
You didn't tell me he was so big. Unlike this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Scheduled check ...
Synchornize TimerTask and Thread???
Help with timer
stopping Timer after certain number of actions
sheduling problem
More...