linux多线程 函数
#include<pthread.h>
pthread_self()/pthread_equal() //获得ThreadID
pthread_attr_init()/pthread_attr_setdetachstate()/… //创建一个线程前设置
pthread_create() //创建一个线程
pthread_detach()pthread_setcancelstate()/pthread_setcanceltype() //已有一个线程后设置
pthread_kill() //向线程发送一个信号
pthread_exit() //退出线程但不退出进程
pthread_cancel() //终止另一个线程
pthread_join() //等待一个线程