Real time clock (RTC)
Measuring time: System clock NN
time_t time(time_t * t) Returns the time in number of seconds since 1970‐01‐01
CPU time NN
Unix millennium bug - The Y2038 problem
Affects software and systems that:
Other vulnerable systems & expected surprises
Embedded systems
Coordinated universal time (UTC)
From GMT & TAI to UTC
From GMT to UTC NN
Leap second NN
Notions of time
Global clock: External time reference
Time seen on internal clocks
Clock synchronization
Synchronized time: Systems need it!
Clock synchronization mechanisms
Hardware clock synchronization
Software clock synchronization
Hardware and software clocks
Perfect time NN
Clock properties
Probabilistic clock synchronization
By Flaviu Cristian (IBM, 1989) Uses a time server connected to a time reference source (UTC) external Transmission time is unbounded, but usually reasonably short Probabilistic (averaging) algorithm, synchronization is achieved to the degree that network delays are short compared to desired accuracy Primarily intended for operation on LANs Intend is external synchronization
Cristian’s Method (1989)
Problems with Cristian’s algorithm
Berkeley algorithm overview