News for hackers. Stuff that matters.
Re:Async file IO in Java is not truly async [Resource, Tech ... by evmar on Monday January 08, 2024 @04:39PM (#38918567)
Side note, most comments here are talking about Linux, but despite Windows having a nice async IO API, it turns out that it sometimes is also just sometimes synchronous, yikes.

It includes some pretty big cases like "if the filesystem is encrypted" or "if the write extends the file": https://learn.microsoft.com/en-us/previous-versions/troubles...

Re:Async file IO in Java is not truly async [Resource, Tech ... by ygra on Monday January 08, 2024 @04:50PM (#38918691)
> if the filesystem is encrypted

The file, not the file system. NTFS encryption is applied at the file level (and should be fairly rare these days). Bitlocker should not be affected as it is an encrypted volume with a normal file system.

Re:Async file IO in Java is not truly async [Resource, Tech ... by Yoric on Monday January 08, 2024 @06:23PM (#38919927)
Note that Windows also has weird sync IO in unexpected places, e.g. when normalizing file paths (unless this has changed since I last coded using kernelXX.dll).