I picked up the following demo off the web from https://computing.llnl.gov/tutorials/pthreads/
#include #include #define NU
In Visual Studio 2019 specify -pthread in the property pages for the project under:
-pthread
Linker -> Command Line -> Additional Options
Type in -pthread in the textbox.