------解决方案-------------------- NAME
fork - create a child process
SYNOPSIS
#include <unistd.h>
pid_t fork(void);
DESCRIPTION
fork() creates a new process by duplicating the calling process. The new process, referred to as the child, is an exact duplicate
of the calling process, referred to as the parent, except for the following points: ------解决方案-------------------- man fork ------解决方案-------------------- fork是创建进程,pthread是线程。 ------解决方案-------------------- linux程序设计第四版 人民邮电出版社 ------解决方案-------------------- 是否线程安全要看具体的函数 ------解决方案--------------------
有的是有的不是
比如
Multithreading (see pthreads(7))
The strerror() function is not thread-safe.