5 ms·
Computer Has Two Clocks
- The_suffocated 4y agoWhat does the “SO” in the article refer to?
- chrispeel 4y agoI have worked on synchronization, and couldn't figure out what the article wants to say. If you're interested in the topic, read Wikipedia articles about NTP [1] or clock signal [2] and articles linked from them. [1] https://en.wikipedia.org/wiki/Network_Time_Protocol https://en.wikipedia.org/wiki/Network_Time_Protocol [2] https://en.wikipedia.org/wiki/Clock_signal https://en.wikipedia.org/wiki/Clock_signal
- FastMonkey 4y agoMaybe they mean "OS"?
- hedora 4y agoYour computer has way more than two hardware clocks. Anyway, in Linux, clock_monotonic is nearly useless for distributed systems because NTP can arbitrarily screw up its speed. Clock_monotonic_raw does what most distributed systems want, but for some reason it performed a kernel crossing last time I checked. (Clock_monotonic doesn’t do a kernel crossing.) One possible solution is to use the TSC directly, but then apply an appropriate multiplier to get all the (heterogeneous) processors to run at the same speed. I wish Linux’s clocks were better.