1、pthread_create函数
#include<phread.h>
int phread_create(phread_t *tid,const phread_attr_t*attr,void *(*fun)(void *),void *arg)
返回:若成功则返回0,若出错则返回正的Exxx值
2、phread_join函数
#include<phread.h>
int phread_join(phread_t *tid,void **status);
返回:若成功则返回0,若出错则返回正的Exxx值
3、phread_self函数
#include<phread.h>
phread_t phread_self(void);
返回:返回线程的线程ID
4、phread_detach函数
#include<phread.h>
int phread_detach(phread_t tid);
返回:若成功则返回0,若出错则返回正的Exxx值
5、phread_exit函数
#include<phread.h>
void phread_exit(void *status);
不返回调用者