摘要:
1.线程的创建(pthread_create)2.线程的退出(pthread_exit)3.等待线程结束(pthread_join)4.线程的分离(pthread_detach)5.获取当前线程(pthread_self)1.线程的创建: 函数的原型如下:int pthread_create(pthread_t* thread, pthread_attr_t* attr, void* (*start_routine) (void*), void * arg);第一个参数为pthread_t类型的指针,用来存放创... 阅读全文