2 ms·
Yes, IOCP looks like true async I/O most of the time. While in reality it will block if file is cached, in cases if code tries to read something like 100+ MB at
by dmytroi 7y ago
Yes, IOCP looks like true async I/O most of the time. While in reality it will block if file is cached, in cases if code tries to read something like 100+ MB at a time ReadFile calls can take 200ms+. So most "async I/O" frameworks have to wrap IOCP into a user space thread ...
- for_xyz 7y agoOr disable caching for specified file when calling CreateFile API https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew https://docs.microsoft.com/en-us/windows/win32/api/fileapi/n...