Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
pthread is a POSIX library, i.e. nix. In Windows, as an additional abstraction over the native interface, it comes with mingw or cygwin.
Windows has its own threads, WinAPI with MSDN will help you.
If you really need or need a cross-platform tool, then you can use pthread, but for this it’s really easier to switch to another IDE. For example Eclipse + mingw.
And for cross-platform it is better to use something like boost or Qt - both there and there have their own cross-platform implementations of threads. At the same time, in niks they will use pthread, and in Windows they will use screw threads, and you don’t have to delve into the intricacies of implementing threads in WinAPI or pthread, only delve into the intricacies of boost or Qt.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question