摘要: #include #include #include void *threadhandle(void *);int sum=0;pthread_mutexattr_t mt= PTHREAD_COND_INITIALIZER;int main(){ pthread_t pt[10]; for(int i=0;i<10;i++) { pthread_create(&pt[i],NULL,threadhandle,i); } for(int i=0;i<10;i++) { pthread_join(pt[i],NULL); } ... 阅读全文
posted @ 2014-01-22 09:37 yixiong 阅读(258) 评论(0) 推荐(0) 编辑