摘要: #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; ... 阅读全文
posted @ 2013-01-07 12:12 wang_j 阅读(2576) 评论(0) 推荐(0) 编辑