设置线程属性
摘要:
1 #include <pthread.h> 2 #include <unistd.h> 3 #include <cstdio> 4 #include <cstdlib> 5 #include <iostream> 6 7 void* threadRun(void * arg) 8 { 9 sleep(1);10 11 return 0;12 }13 14 int main()15 {16 char szLog[256] = {0};17 int const threadNum_ = 10;18 pthread_t * writeTh 阅读全文
posted @ 2013-01-11 10:04 keep_simple 阅读(354) 评论(0) 推荐(0)
浙公网安备 33010602011771号