POSIX线程库(pthread.h$c$c>)对于C / C ++基于标准的线程API,是我会用的。还有几个可用的教程,如这个或这个。
The POSIX thread libraries (pthread.h
) are a standards based thread API for C/C++ and is what I would use. There are also several tutorials available such as this one or this one.
我承认,我不熟悉的 thread.h
。