How to use asynchronous I/O with your application
Points to remember include:
-
The aiocb control block is the center of all asynchronous
I/O requests.
You must allocate a control block and assign values to its
members before a call to aio_read or aio_write
is made.
-
Before an application exits or closes its file
descriptors, it should ensure that all its Asynchronous I/O
requests complete.
-
If you want to lock an area of memory using aio_memlock,
you must be sure that you
are running the Kernel-based version of Asynchronous I/O.
Previous topic:
close
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004