#include<pthread.h>
#include<stdio.h>
void *func()
{
printf("我是子进程\n");
sleep(1);
}
int main()
{
pthread_t test;
pthread_create(&test,NULL,func,NULL);
pthread_join(test,NULL);
sleep(1);
printf("我是主进程\n");
return 0;
}