![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
POSIX多线程程序设计
yu_1992_11_25
每天进步一点点
展开
-
学习《POSIX多线程程序设计》笔记一
/* * lifecycle.c * * Demonstrate the "life cycle" of a typical thread. A thread is * created, and then joined. */ #include <pthread.h> #include <stdio.h> #include <stdlib.h> //#include "errors.h"/原创 2017-02-14 15:22:11 · 446 阅读 · 0 评论 -
学习《POSIX多线程程序设计》笔记一(分离线程)
//以下程序在linux 系统亲测通过 //gcc detachstate_pthread.c -o detachstate_pthread -lpthread #include <stdlib.h> #include <stdio.h> #include <pthread.h>void thread_routine (void) { int i =0; for(i=0;i<10原创 2017-02-15 11:55:21 · 409 阅读 · 0 评论