摘要: Linux多线程实例练习 - pthread_cancel1、代码xx_pthread_cancel.c#include #include #include #define debug_Msg(fmt, arg...)\ do{\ printf("%s %d : ", __FIL... 阅读全文
posted @ 2015-01-29 18:20 fengbohello 阅读(1325) 评论(0) 推荐(0) 编辑
摘要: Linux多线程实例练习 - pthread_exit 与pthread_joinpthread_exit():终止当前线程void pthread_exit(void* retval);pthread_join():阻塞当前的线程,直到另外一个线程运行结束int pthread_join(pthr... 阅读全文
posted @ 2015-01-29 09:59 fengbohello 阅读(4939) 评论(0) 推荐(0) 编辑
摘要: Linux多线程实例练习pthread_create():创建一个线程int pthread_create(pthread_t *tidp, const pthread_attr_t *attr, (void*)(*start_rtn)(void*), vo... 阅读全文
posted @ 2015-01-29 09:51 fengbohello 阅读(6575) 评论(1) 推荐(0) 编辑