Getting Started with POSIX Threads

964阅读 0评论2012-12-26 hanhuili
分类:LINUX

注:
1)记得调用pthread_join让线程退出后能释放资源(如栈空间)
2)记得调用pthread_testcancel查看线程是否已经被终止,并释放资源
3)记得调用pthread_setcancelstate防止线程被意外终止运行

原文:

上一篇:linux下history命令的使用方法
下一篇:OpenSSL线程安全