pthead 创建与销毁详解 pthread_create pthread_join pthread_exit pthread_detach
pthead创建与销毁pthread_create函数原型:intpthread_create(pthread_t*thread,constpthread_attr_t*attr,void*(*start_routine)(void*),void*arg);thread:指向pthread_t类型的指针,用于存储新线程的标识符。attr:指向pthread_attr_t类型的指针,用于设置新线程的