I think think that may be exactly what I was looking for. I'm going to dig into it a bit deeper tomorrow when I get back to work. If this answers my question, I'll close the question and assign points. Thank you!
Main Topics
Browse All TopicsI work on supporting a server application written in Java, using a couple versions of the Sun JRE, all in the JRE 5 line. In working with some of our customers I've run into some weird issues with AMD Dual-core servers. It appears that if software uses the RDTSC (Read TimeStamp Counter) to determine the current time there is likely a discrepancy between running this command if on Core 1 compared to running it on Core 2 due to power management slowing down the core frequency at times.
What I'm after is how did the JRE implement the System.currentTimeMillis? Looks like it's a JNI method meaning it runs native C or C++ code. I've downloaded the JRE source, but am missing something when trying to determine where that function is implemented in native code.
Just to be clear, I'm looking to know whether the JRE native function uses RDTSC, QueryPerformanceCounters, or some other method to get the system time. Thanks!
(We are currently running JRE 1.5.0_10-b03.)
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: objectsPosted on 2009-08-19 at 17:57:55ID: 25138625
http://helpdesk.objects.co m.au/java/ how-is-sys tem- curren ttimemilli s-implemen ted-in-win dows
m.au/java/ how-is-sys tem-nanoti me- impleme nted-in-wi ndows
also may be of interest
http://helpdesk.objects.co