comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Any leap year issues caused by Ada yesterday?
Date: Tue, 6 Mar 2012 20:40:23 +0100
Date: 2012-03-06T20:40:23+01:00	[thread overview]
Message-ID: <77jjfhr1yfxo.pivspzekvere$.dlg@40tude.net> (raw)
In-Reply-To: 9778287.445.1331060917464.JavaMail.geo-discussion-forums@ynes7

On Tue, 6 Mar 2012 11:08:37 -0800 (PST), Shark8 wrote:

> On Tuesday, March 6, 2012 11:37:35 AM UTC-6, Dmitry A. Kazakov wrote:
>> 
>> If the sources of the TSC and of the system clock are different, then there
>> is a systematic error. I suppose this is the major reason why it did not
>> work under VxWorks. The system time must be derived from the same quartz.
>> Otherwise you have to compensate the deviation, which could well be as big
>> as 5 microseconds per second.
> 
> Really? I thought the whole point of using Quartz crystals was because
> they vibrate at a precise rate; or is the problem analogous to the "beats"
> that you hear when two musical instruments* are slightly out of tune?

I am not a physicist, but we actually measured TSC of two identical
computers (same motherboard, processor, manufacturer etc). The deviation
was microseconds per second.
 
> (*Guitar comes immediately to mind; especially as it uses that as part of the tuning process.)

In that analogy it is like two strings having different tension or
diameter.

But what I meant was not oscillators of almost same period, but rather ones
having absolutely unrelated periods, e.g. the BIOS clock and the TSC. x86
has many clocks spread in abundance all over the motherboard. They are
physically different, unsynchronized etc.

OS designers carefully select the least accurate and most unreliable of
them for the time source... (:-))

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2012-03-06 19:40 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01 13:06 Any leap year issues caused by Ada yesterday? Georg Bauhaus
2012-03-05 11:07 ` tonyg
2012-03-05 15:59   ` Shark8
2012-03-05 18:03     ` Dmitry A. Kazakov
2012-03-05 18:30       ` Simon Wright
2012-03-05 20:17         ` Dmitry A. Kazakov
2012-03-05 20:56           ` Simon Wright
2012-03-06  8:47             ` Dmitry A. Kazakov
2012-03-06  9:20               ` Simon Wright
2012-03-06 10:07                 ` Dmitry A. Kazakov
2012-03-06 10:51                   ` Georg Bauhaus
2012-03-06 11:16                     ` Dmitry A. Kazakov
2012-03-06 16:46                   ` Simon Wright
2012-03-06 17:37                     ` Dmitry A. Kazakov
2012-03-06 17:59                       ` Simon Wright
2012-03-06 19:18                         ` Dmitry A. Kazakov
2012-03-06 20:22                           ` Simon Wright
2012-03-06 19:08                       ` Shark8
2012-03-06 19:40                         ` Dmitry A. Kazakov [this message]
2012-03-06 21:00                       ` tmoran
2012-03-06 21:37                         ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox