
SUMMARY
429
Summary
Windows has three methods for performing asynchronous I/O. Using threads is the
most general and simplest technique and, unlike the other two, works with Windows
9x. Each thread is responsible for a sequence of one or more sequential, blocking I/O
operations. Furthermore, each thread should have its own file or pipe handle.
Overlapped I/O allows a single thread to perform
asynchronous operations on a
single file handle, but there must be an event handle, rather than a thread and file
handle pair, for each operation. Wait specifically for each I/O operation to complete
and then perform any required cleanup or sequencing operations