3 ms·
> Note that such a check is inherently racy, though. Do you mean in a kind of "time of check vs. time of use" kind of way? I would suppose that if the answer
by LunaSea 4y ago
> Note that such a check is inherently racy, though.
Do you mean in a kind of "time of check vs. time of use" kind of way?
I would suppose that if the answer is negative that would at least stay true no?
- saagarjha 4y agoYes. If the process exits (and is perhaps replaced by something else!) in between the two checks you will take actions based on stale information.