Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

System clocks going out of sync when java runs

843798Mar 18 2004 — edited Mar 18 2004
Hi,

my problem -
In developing a complex java app with many threads and timers, some network io and some display served up via swing in applets I've encountered a strange problem. For some reason the system time goes out the machine running the app goes out of sync quite quickly with the other machines on the network.

The cpu is running at about 20%, but running the JVM is the common factor that leads to the clocks going out of sync.

possible answer -
We do a lot of calls to system.currentTimemillis(), could this interrupt the system time being moved on and therefore mean the system time isn't updated at the correct rate?

any suggestions on the cause would be appreciated.

oh, this is all running jvm 1.401 on win 2000.

thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2004
Added on Mar 18 2004
1 comment
151 views