12 2020 档案

摘要:#ifdef HAVE_CONFIG_H #include<config.h> #endif #include<stdio.h> #include<stdlib.h> #include<sys/types.h> #include<sys/stat.h> #include<fcntl.h> #incl 阅读全文
posted @ 2020-12-19 16:52 1112+ 阅读(52) 评论(0) 推荐(0) 编辑
摘要:#define RECORDLEN 32 struct jtRecord { int key; char other[RECORDLEN-sizeof(int)]; }; #ifdef HAVE_CONFIG_H #include<config.h> #endif 阅读全文
posted @ 2020-12-19 16:48 1112+ 阅读(48) 评论(0) 推荐(0) 编辑
摘要:#include<unistd.h> #include<sys/types.h> #include<sys/stat.h> #include<fcntl.h> #include<stdio.h> #include<stdlib.h> #include<memory.h> #include"HashF 阅读全文
posted @ 2020-12-19 16:42 1112+ 阅读(75) 评论(0) 推荐(0) 编辑
摘要:#include<unistd.h> #include<sys/stat.h> #define COLLISIONFACTOR 0.5 struct HashFileHeader { int sig; int reclen; int total_rec_num; int current_rec_nu 阅读全文
posted @ 2020-12-19 16:33 1112+ 阅读(36) 评论(0) 推荐(0) 编辑
摘要:#include "math.h" #include "sched.h" #include "pthread.h" #include "stdlib.h" #include "semaphore.h" #include "stdio.h" typedef struct{ char task_id; 阅读全文
posted @ 2020-12-03 22:12 1112+ 阅读(73) 评论(0) 推荐(0) 编辑
摘要:#include "sched.h" #include "pthread.h" #include "stdio.h" #include "stdlib.h" #include "semaphore.h" #include <string.h> int producer(void *args); in 阅读全文
posted @ 2020-12-02 20:12 1112+ 阅读(49) 评论(0) 推荐(0) 编辑