1. Download Pthreads-w32-2-9-1-realease.zip Address: http://www.mirrorservice.org/sites/sourceware.org/pub/pthreads-win32/
2. After downloading, unzip, out three folders, we only need pre-built.2 folder
3. For ease of administration, copy the three. h header files in the Include folder to the installation path of VS./vc/include path, for example my is C:\Program Files (x86) \microsoft Visual Studio 12.0\vc\ Include
4. Similarly, copy the two folders below the Lib folder x64/and x86/to C:\Program Files (x86) \microsoft Visual Studio 12.0\vc\lib
5. dll files under the same x64 and x86 two folders, the actual operation of the program needs to use. Note here that to copy the x64 folder to the C:\Windows\System32\, let the 64-bit program run, and the x86 folder to be copied to the C:\Windows\SysWOW64\, let the 32-bit program run
6. In the new VS Project, the properties->vc++ directory, including directories, and library directories are appended separately: C:\Program Files (x86) \microsoft Visual Studio 12.0\vc\include and \ C Program Files (x86) \microsoft Visual Studio 12.0\vc\lib\x64
7. Then open the additional dependencies, input, linker, plus pthreadVC2.lib, so that configuration is complete, pthread.h can be used in VS2013
Use <pthread.h> in Windows VS2013;