摘要: posix线程库重要的程度不言而喻,这些天学习这个,参考https://www.ibm.com/developerworks/cn/linux/thread/posix_thread1/首先先看第一个基本的程序#include#include#include#includevoid* thread_function(void* arg){ inti ; for(i=0; i,里面所有的函数都是以pthread_t开头。看main函数,定义一个pthread_t保存线程的ID,具体的结构可以进去看看,大概就是一个结构体如下struct_opaque_pthread_t {long__sig;st 阅读全文
posted @ 2013-09-06 15:56 越影&逐日而行 阅读(430) 评论(0) 推荐(0) 编辑