Linux系统编程之进程与线程控制原语对比
进程 | 线程 |
fork | pthread_create |
exit | pthread_exit |
wait | pthread_join |
kill | pthread_cancel |
getpid | pthread_self |
Linux系统编程之进程与线程控制原语对比
进程 | 线程 |
fork | pthread_create |
exit | pthread_exit |
wait | pthread_join |
kill | pthread_cancel |
getpid | pthread_self |