If your application uses both Pthreads and Solaris threads functions, you can compile and link with the same command used for compiling for Pthreads only:
cc -mt [ flag ... ] file... [ library... ] -lpthread |
In mixed usage, you need to include both thread.h and pthread.h.