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() //等待一个线程


扫描二维码关注公众号,回复: 2951122 查看本文章


猜你喜欢

转载自blog.csdn.net/Nercececece/article/details/80584137