摘要:
1. 线程属性: 使用pthread_attr_t类型表示,我们需要对此结构体进行初始化, 初始化后使用,使用后还要进行去除初始化! pthread_attr_init:初始化 pthread_attr_destory:去除初始化 #include<pthread.h> intpthread_att 阅读全文
posted @ 2018-07-01 16:53
帆随我向
阅读(866)
评论(0)
推荐(0)
摘要:
源码如下: #include<stdio.h>#include <unistd.h>#include<pthread.h> void* thread1(void* arg) { unsigned int i,j; int policy; struct sched_param param; pthre 阅读全文
posted @ 2018-07-01 16:35
帆随我向
阅读(409)
评论(0)
推荐(0)
浙公网安备 33010602011771号