I found an implementation for pthreads on Windows here, but I couldn't get it to work right. Can anyone help me to install pthreads ? Like where to put DLLs, .lib, and .h files?
Also, as an environment I'm not using Visual Studio, but Codeblocks with Mingw.
I usually develop on Linux, but this project has to be on Windows, and I've already got some code implemented using pthreads, so I don't want to use Windows Threads from 'windows.h'.
MinGWMSYS2 and you are compiling it for Windows](https://stackoverflow.com/a/792142). If you have no need for Windows executables, then choose either one. I used cygwin about 5 years ago. I definitely prefer MSYS2. Side-note: MinGW and MSYS2 are synonyms - or maybe it is more correct to say that MSYS2 offers a very convenient way to install MinGW. If you ever need **native** Linux, check out [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10#step-1---enable-the-windows-subsystem-for-linux). – Henke Feb 26 '21 at 16:50