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
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer (Exam 1Z0-830) Java SE 17 Developer (Exam 1Z0-829) Programmer’s Guide
this week in the
Programmer Certification
forum!
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:
Tim Cooke
Campbell Ritchie
paul wheaton
Ron McLeod
Devaka Cooray
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Paul Clapham
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
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
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...