Published at LXer:
The most common input/output model used in Linux is synchronous I/O. After a request is made in this model, the application blocks until the request is satisfied; the calling application requires no CPU while it awaits the completion of the I/O request. But in some cases there's a need to overlap an I/O request with other processing. The POSIX asynchronous I/O (AIO) API provides this capability. In this article, get an overview of the API and see how to use it.