On Sep 18, 2009, at 3:23 PM, Peter Stuge wrote:
That being said, just setting something to non-blocking is not the
same thing as asynchronous IO. Asynchronous IO is not portable and
also not always necessary.
I agree - it's a very different topic. Windows strongly prefers async
io for high throughput, and *ix kind of has it, sometimes, but the
motivation for using aio_*() is far smaller on *ix than overlapped IO
on Windows.
Absolutely, overlapped I/O on Windows is (or at least always was) much
faster than "blocking" I/O. Last time I tried aio, it didn't work
with sockets (at least on the Mac), only files.
There's some really good information on the C10K page:
http://www.kegel.com/c10k.html
Although some of it may be out of date.
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel