Mutex and Atomic (was 64 bit time_t on 32 bit systems)

Hal Murray halmurray at sonic.net
Fri Jan 20 05:43:08 UTC 2023


gem at rellim.com said:
> Sadly, that no longer works on modern CPUs with out of order execution.
> Unless wrapped in a mutex, or atomic, and that is now a no-no. 

Do you have a good reference for that?

I'd like something like a nice blog article that explains things.

What is the new/wonderful way?  Even if you do something like a kernel call 
with a file handle, deep inside there I'd expect a mutex to make sure the 
right thing happens if 2 threads try to do the same operation at the same time.

-------

Is there a blog type page describing the TIME_BITS stuff?


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list