News for hackers. Stuff that matters.
Re:Windows file access performance compared to Linux by int_19h on Saturday December 29, 2018 @07:50PM (#18786648)
> This is fundamentally not any different between the systems, race conditions can happen either way. The user could write data to file right before the deletion recurses to the same directory and the handle-based deletion happens.

When you hold a handle to a file or directory, you get to decide on the degree of shared access with any other users for the duration that handle is held (FILE_SHARE_*). So this does solve the concurrency problem, by allowing you to, effectively hold a lock on the file until you're done.

There are no comments on this comment yet.