Asynchronous I/O Behavior
Asynchronous I/O operations do not always execute in the sequence in which the operations are queued to the kernel. Asynchronous operations do not necessarily return to the caller in the sequence in which the operations were performed.
If a single buffer is specified for a rapid sequence of calls to
aioread
(), the buffer's state is uncertain. The uncertainty of
the buffer's state is from the time the first call is made to the time the last
result is signaled to the caller.
An individual aio_result_t
structure can be used for
only one asynchronous operation. The operation can be a read or a write operation.