I picked up the following demo off the web from https://computing.llnl.gov/tutorials/pthreads/
#include #include #define NU
For Linux the correct command is:
gcc -o term term.c -lpthread