编译: gcc 3_5\ thread_create.c -lpthread -o 3_5\ thread_create

线程退出:
1 被进程终止
2 调用void pthread_exit(void *rval_ptr)
3 线程运行结束后return      

例:3_5 thread_create.c 3_5 thread_int.c 3_5 thread_exit.c 3_5 thread_clean.c

 posted on 2013-04-24 20:42  Chenyong Liu  阅读(111)  评论(0编辑  收藏  举报