Preparing for Compilation
The following items are required to compile and link a multithreaded
program. Except for the C compiler, all should come with your Solaris operating
environment.
-
A standard C compiler
-
Include files:
-
<thread.h> and <pthread.h>
-
<errno.h>, <limits.h>, <signal.h>, <unistd.h>
-
The regular Solaris linker, ln(1)
-
The Solaris threads library (libthread),
the POSIX threads library (libpthread), and possibly the
POSIX realtime library (librt) for semaphores
-
MT-safe libraries (libc, libm, libw, libintl, libnsl, libsocket, libmalloc,
libmapmalloc, and so on)