2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
6 .. index:: input/output, asynchronous, asynchronous I/O
13 Asynchronous I/O is supported if the program is linked against the
14 POSIX thread library. If that is not the case, all I/O is performed
15 as synchronous. On systems which do not support pthread condition
16 variables, such as AIX, I/O is also performed as synchronous.
18 On some systems, such as Darwin or Solaris, the POSIX thread library
19 is always linked in, so asynchronous I/O is always performed. On other
20 sytems, such as Linux, it is necessary to specify :option:`-pthread`,
21 :option:`-lpthread` or :option:`-fopenmp` during the linking step.