线程使用visual stdio2008

0 c++ windows multithreading pthreads visual-studio

我想在c ++中实现线程化.我正在使用visual stdio2008并希望使用pthreads实现线程.任何人都可以指导我关于pthreads以及vs2008中的实现.感谢预期

gim*_*mpf 9

为什么要使用在Windows上用于C++的*nix(pthreads)中常用的普通C API(pthreads)?除了...之外的任何其他原因.

使用boost.thread.它在windows上使用windows线程,在posix平台上使用pthread.它运作良好,便于携带.

如果你真的想使用pthread,你将使用类似Microsoft Windows Services for UNIX的东西.但是从未尝试过那个.