多线程函数系列pthread_create(), pthread_join(), pthread_self(),pthread_exit(), pthread_detach()实例详解
#include
intpthread_create(pthread_t*thread,constpthread_attr_t*attr,void*(*start_routine)(void*),void*arg)创建线程,并可以向创建的线程传递一个参数(见实例3,向线程传递总的线程个数,一个int变量);#include
intpthread_join(pthread_tthread,void*