Author: dj3vandedj3vande
Date: Feb 1, 2008 12:57
In article m34g2000hsf.googlegroups.com>,
christ2008 mailinator.com> wrote:
>So if I understand you correctly, the intended *beneficial* way of
>using overlapped I/O is issuing several such calls in succession
>(because they all return immediately), then wait for _all_ of them
>using WaitForMultipleObjects, then whoever breaks that wait gets
>serviced immediately, then loop back to WaitForMultipleObjects, etc.
>
>Did I get this right?
Correct as far as it goes, but that's not the complete set.
Overlapped I/O is beneficial when there's *anything* other than waiting
for the I/O you just started that you could be doing before it
finishes; that can be running other I/O operations in parallel, but
there are other things you can do as well, like processing data you
already have or waiting for events other than an I/O completion.
dave
--
Dave Vandervies dj3vande at eskimo dot com
|