A customer was looking for a synchronization object that
had the following properties:
Can be placed in a memory-mapped file.
Can be used by multiple processes simultaneously.
Bonus if it can even be used by different machines simultaneously.
Does not leak resources if the file is deleted.
It turns out there is already a ...
Some time ago, I described how to detect programmatically whether you are running on 64-bit Windows, and one of the steps of the algorithm was "If you are a 64-bit program, then you are running on 64-bit Windows, because 32-bit Windows cannot run 64-bit programs."
Every so often, somebody will claim that they found a flaw in this logic: "...
We saw some time ago that
the FAT file system records timestamps in local time
to only two-second resolution.
This means that copying a file to a FAT-formatted device
(typically a floppy drive or a USB thumb drive)
can increase the timestamp by up two seconds.
And even after the file is copied, the timestamp is not stable.
The timestamp ...