Re:Some things every C programmer should know about C (2002)
by ajross on Monday December 09, 2019 @04:19PM
(#21746711)
Gotta one-up your pedantry here: kids, "atomic" and "thread-safe" are not the same thing. Bit operations are not in general atomic (though on some architectures they can be), but atomic operations themselves are only a requirement, and not sufficient for, thread safety. Thread safety is an architectural property. You can write terribly racy code using 100% atomic operations.
[ Parent
| on HN ]
There are no comments on this comment yet.