Started with pThread examples from
https://computing.llnl.gov/tutorials/pthreads/