Re: AIO sockets
- From: llothar <llothar@xxxxxx>
- Date: Fri, 29 Feb 2008 07:02:20 -0800 (PST)
On 29 Feb., 21:33, Jo <JoJoTwill...@xxxxxxxxxxx> wrote:
Is there a tutorial somewhere on how to use AIO for sockets?http://www.kegel.com/c10k.htmlseems to be very complete with no
information, suggesting that it can be done, but trying their links
just adds to my frustration. One thing I find very confusing is that
it seems to talk about polling in parallel with asynchronous I/O.
Doesn't polling defeat the purpose of asynchronism?
Well i guess that most implementations on Linux still sucks. Thats why
aio_ is still excluded from LSB even if LSB defines the rt library.
Last time i looked (okay long ago) aio was just implemented on the
user level abstraction with starting threads. So it makes sense to
believe that AIO on sockets is implemented with a background thread
that is polling on different sockets (and a control file descriptor).
I've implemented something equal in my Eiffel runtime. And yes, it
removes a lot of the optimization that could be done with kernel
supported AIO.
.
- References:
- AIO sockets
- From: Jo
- AIO sockets
- Prev by Date: AIO sockets
- Previous by thread: AIO sockets
- Index(es):
Relevant Pages
|