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
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005