Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 ...


Or disable caching for specified file when calling CreateFile API

https://docs.microsoft.com/en-us/windows/win32/api/fileapi/n...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: