c - pthread_exit() 和 exit() 之间的区别?

标签 c pthreads

pthread_exit()exit() 有什么区别?

最佳答案

你读过手册页了吗?

exit() 执行正常程序终止,而 pthread_exit() 终止调用线程。

关于c - pthread_exit() 和 exit() 之间的区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11159691/

相关文章:

c - 指向共享变量的指针互斥

c - 是否仍然值得在 OpenMP 实现上投入时间?

c - 括号前的表达式?

使用未知数量的参数调用库函数

c - 在 switch 语句中错误是 Switch quantity not an integer

c++ - 如何在运行时更改格式说明符的值?

c - Pthread 的奇怪行为

c - 如何在 Windows 上设置 pthreads?

windows - OpenSSL 和多线程

c - 在C中使用深度优先搜索找到最小生成树