Re:Things Unix can do atomically (2010)
by woodman on Monday May 30, 2016 @07:11PM
(#11803738)
As the others have said, indivisible operations. This is important in the context of race conditions, imagine two threads incrementing a counter with no locks. Using non-atomic ops to read, increment and then store the number will lead to a bad time. Or more on topic, checking if a file exists and then trying to open it - lots of bad things can happen.
[ Parent
| on HN ]
There are no comments on this comment yet.