Let's go!!!!!
发布时间:2015-07-01 20:23:27
<p class="MsoNormal"><p><span style="font-family:宋体;">条件变量的结构为</span><span>pthread_cond_t</span><span style="font-family:宋体;">,函数</span><span>pthread_cond_init</span><span style="font-family:宋体;">()被用来初始化一个条件变量。它的原型为:</span></p><p><span style="font-f.........【阅读全文】
发布时间:2015-07-01 20:17:01
<p><span> Linux</span><span style="font-family:宋体;">线程</span><span>-</span><span style="font-family:宋体;">互斥锁</span><span>pthread_mutex_t</span></p><p><span> </span></p><p><span> </span><span style="font-family:宋体;">在线程实际运行过程中,我们经常需要.........【阅读全文】
发布时间:2015-03-08 22:24:55
#include<stdio.h>#include<stdlib.h>#include<malloc.h>#include<string.h>#define BUCKETS 200typedef struct ListElmt_{ char data[15]; struct ListElmt_ *next;}ListElmt;typedef struct List_{ int size; ListElmt *head;}List;typedef struct CHT.........【阅读全文】
发布时间:2015-03-08 22:23:57
#include<stdio.h>#include<malloc.h>#include<stdlib.h>#define True 1#define False 0#define error do{printf("Init set error!");exit(1);}while(0);typedef int ElemType;typedef int Status;typedef struct NODE{ ElemType data; struct NODE *next;}Node;typedef struct LI.........【阅读全文】