Performs an asynchronous write operation.
The example illustrates the performance gain of the asynchronous I/O usage in comparison with synchronous I/O usage. In the example, 5.6 MB of data is asynchronously written with the main program computation, which is the scalar multiplication of two vectors with some normalization.
С-source file executing a scalar multiplication:
Suspends the calling process until one of the asynchronous I/O operations completes.
Returns error status for asynchronous I/O requests.
Returns the final return status for the asynchronous I/O request.
Synchronizes all outstanding asynchronous I/O operations.
Cancels outstanding asynchronous I/O requests for the file descriptor fd.