in reply to Atomic update counter in a file
This one still has a race condition between the test for existance and the creation of the new file.
Which is why typically you never perform that test -- its redundant and introduces a race condition
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Atomic update counter in a file
by Anonymous Monk on Nov 18, 2015 at 10:37 UTC | |
by pbijnens (Novice) on Nov 18, 2015 at 11:43 UTC |