摘要:
1.如何显示每个线程cpu耗用ps auxH | grep test2.如何定位哪个线程#define THREAD_NUM 8void *myfunc(void *arg){ printf("thread %d\n",*(int *)arg); sleep(1); ... 阅读全文
posted @ 2015-03-31 10:12
dodng
阅读(288)
评论(0)
推荐(0)
摘要:
1.如下代码所示:#include #include #include #include pthread_mutex_t count_lock;pthread_cond_t count_ready;int count;void *decrement_count(void *arg){ ... 阅读全文
posted @ 2015-03-31 10:09
dodng
阅读(3625)
评论(8)
推荐(0)

浙公网安备 33010602011771号