进程 | 线程 | 描述 |
fork | pthread_create | 创建新的控制流 |
exit | pthread_exit | 从现有的控制流中退出 |
waitpid/wait | prhtead_join | 从控制流中得到退出状态 |
atexit | pthread_cancel_push | 注册在退出控制流时调用的函数 |
getpid | pthread_self | 获取控制流的ID |
abort | pthread_cancel | 请求控制流的非正式退出 |
进程控制:
fork / vfork
exec函数族
exit
wait/waitfor
abort
线程控制:
pthread_create
pthread_exit
pthread_join
pthread_cancel_push
pthread_self
pthread_cancel