摘要: #include <stdio.h>#include <stdlib.h>int flag = 1;void * thr_fn(void * arg) { while (flag){ printf("******\n"); sleep(10); } printf("sleep test thread exit\n");}int main() { pthread_t thread; if (0 != pthread_create(&thread, NULL, thr_fn, NULL)) { printf("err 阅读全文
posted @ 2012-08-30 14:56 Further 阅读(32500) 评论(0) 推荐(2) 编辑