要求 编程实现在主进程中通过线程创建pthread_create()函数来创建新的线程。 在主线程和子线程中要通过getpid()及pthread _self()获取对应的进程号和线程号并打印输出 实现代码 #include<stdio.h> #include<unistd.h> #include<pthread.h> #include<stdlib.h> void* func(void