I picked up the following demo off the web from https://computing.llnl.gov/tutorials/pthreads/
#include #include #define NU
Acutally, it gives several examples of compile commands used for pthreads codes are listed in the table below, if you continue reading the following tutorial:
https://computing.llnl.gov/tutorials/pthreads/#Compiling