On Thu, 22 Feb 2024 01:08:55 -0600, Jon Perryman <jperr...@pacbell.net> wrote:
>Real-time clocks are not monotonical. Regardless of vendor, there is 1 
>real-time clock shared by all CPU cores. 

There is indeed one hardware clock, but it's not visible to the partitions. The 
"system TOD clock" is what the partitions see, and it is architecturally 
defined to be monotonically increasing, never going backward and never being 
the same.  Any two executions of STORE CLOCK (STCK or STCKE) on any processor 
in the partition, same or different, will always result in different clock 
values, and subsequent executions will result in values that are greater than 
either of the two prior values.   

STORE CLOCK FAST (STCKF) guarantees no such relationship, and time may appear 
to flow backwards.   (So it's only useful when "approximately" is good enough.)

See Chapter 4 of the PoP, "Setting and Inspecting the Clock".   There's a table 
that I think you will find helpful.

Alan Altmark
IBM

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to