日期:2014-05-16 浏览次数:20658 次
int main(void){ int i=0; pthread_t thread; pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_DETACHED); for(i=0;i<200;i++) { if(EAGAIN == pthread_create(&thread,&attr,Queue_Event,NULL)) break ; } }