DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Threads

Compilation environment

Source code that uses Threads Library functions should include the following line:

   #include	<thread.h>
and should be compiled with the following command line options:

cc [options] -Kthread file

The -Kthread flag is needed for an application to be thread-safe, and to access reentrant routines in standard libraries (see below).

Source code that uses the synchronization routines in the Threads Library should include the following line:

   #include	<synch.h>

Next topic: Error returns
Previous topic: Invalidation of synchronization mechanisms

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004