摘要:
#include <stdio.h>#include <pthread.h>struct stu { int age; char *name; char *num;}; void thread1(void){ int i; for(i=0;i<3;i++) { printf("This is a pthread1.\n"); usleep(2); }}//传递多个参数void thread2(void *data){ struct stu *stu1=(struct stu*)data; int i; ... 阅读全文