I picked up the following demo off the web from https://computing.llnl.gov/tutorials/pthreads/
#include #include #define NU
in eclipse
properties->c/c++Build->setting->GCC C++ linker->libraries in top part add "pthread"