Compile Your Program


To use Solaris threads, you need to include the following header file:

#include  <thread.h>

To compile your program, the Solaris threads library thread is required. The following command line is an example:

gcc test.c -o test -lthread