摘要:
#include <stdio.h>#include <pthread.h>void *pthread_fun(void *arg){ while (1) { sleep(1); printf("pthread running\n"); } return((void *)0);}int main(){ pthread_t tid; pthread_create(&tid, NULL, p... 阅读全文
posted @ 2012-11-17 14:34
helloweworld
阅读(296)
评论(0)
推荐(0)
摘要:
gcc test.c -lpthread 阅读全文
posted @ 2012-11-17 14:23
helloweworld
阅读(1852)
评论(0)
推荐(0)

浙公网安备 33010602011771号