and include <pthread.h> /* for POSIX threads */
cc example.c -o example -lthread
and include <thread.h> /* for Solaris threads */