Is it possible to work with the pthread library normally in a windows environment? Or should it just be in linux?
Is it possible to work with the pthread library normally in a windows environment? Or should it just be in linux?
How do you say here , which I think is a very correct statement to clarify this doubt:
Pthreads is part of POSIX and Windows is not a POSIX system.
However, there is only one implementation of pthread.h
for Windows called pthreads-win32
, but does not have all functions. Here can see compliance with the original library. You can use it with MinGW or TDM-GCC.