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

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005