编译: 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
编译: 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
转载于:https://www.cnblogs.com/mycheetah/archive/2013/04/24/3040910.html