70,040
社区成员
发帖
与我相关
我的任务
分享while(i<infohash_num)
{
pthread_t tid;
int rc=0;
if((rc=pthread_create(&tid,NULL,process_http,a[i]))!=0);
{
fprintf(stderr,"pthread_create failed!!!!!\n");
exit(0);
}
else
{
printf("创建线程 %d 成功,请求的 infohash 为:%s!!!\n",i,a[i]);
i++;
}
//sleep(5);
}