[LEAPSECS] Looking-glass, through

Tony Finch dot at dotat.at
Fri Jan 14 05:29:04 EST 2011


On Thu, 13 Jan 2011, Steve Allen wrote:

>

> Alas, 'tis neither normal nor expected by the APIs and the programmers

> who are implementing systems that deal with time.


One of the core abstractions provided by operating systems is some
coherent model of time. And the time labs provide a similar simplified
model of time to the general public.

Computers are *full* of clocks, including clocks with nanosecond
resolution. Unfortunately the nanosecond clocks (the CPU cycle counters)
run at different rates according to the CPU's power saving state. So the
OS has to provide an abstraction layer on top of them in order to save the
sanity of the programmer, and to allow the OS to do things like migrate
threads from one CPU to another without affecting their idea of time.

For more along these lines, see http://www.youtube.com/watch?v=Dj7Y7Rd1Ou0

Tony.
--
f.anthony.n.finch <dot at dotat.at> http://dotat.at/
HUMBER THAMES DOVER WIGHT PORTLAND: NORTH BACKING WEST OR NORTHWEST, 5 TO 7,
DECREASING 4 OR 5, OCCASIONALLY 6 LATER IN HUMBER AND THAMES. MODERATE OR
ROUGH. RAIN THEN FAIR. GOOD.


More information about the LEAPSECS mailing list