3 ms·
That's almost literally IOCPs.
by blattimwind 8y ago
That's almost literally IOCPs.
- d33 8y agoInteresting. Where could I read up on that?
- rrdharan 8y agohttps://en.wikipedia.org/wiki/Input/output_completion_port https://en.wikipedia.org/wiki/Input/output_completion_port
- kbwt 8y agoI'm relatively sure ICOP still requires two syscalls per IO.
- blattimwind 8y agoYes, that's why I wrote almost. IOCPs do the other half (receiving results in arbitrary order in a thread pool managed by the kernel). I don't see any particular reason why a batched syscall wouldn't work for it. (Note that Windows has Read/WriteFileScatter/Gather, which is multiple reads from the same handle [as opposed to multiple reads from different handles]).
- kbwt 8y agoICOP is the opposite of polling. I really don't see the resemblance here.