Linux进程控制——线程创建 实现代码 #include #include #include void* func(void *arg) { printf(Child thread!\n); printf(Thread ID is %ld\n, (unsigned long) pthread_self()); return 0; } int main(int argc, char const* argv[]) { pthread_t threadId; if(pthread_create(&threadId, NULL,func, NULL)