线程相关函数(1)-pthread_create(), pthread_join(), pthread_exit(), pthread_cancel() 创建取消线程
一.pthread_create()#includeintpthread_create(pthread_t*thread,constpthread_attr_t*attr,void*(*start_routine)(void*),void*arg);pthread_t*thread:传递一个pthread_t变量地址进来,用于保存新线程的tid(线程ID)constpthread_attr_t*a