摘要:
#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+
阅读(56)
评论(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+
阅读(59)
评论(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+
阅读(82)
评论(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+
阅读(39)
评论(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+
阅读(75)
评论(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+
阅读(53)
评论(0)
推荐(0)