- 博客(3)
- 收藏
- 关注
原创 操作系统实验四文件系统源码
HashFile.h #include <unistd.h> #define COLLISIONFACTOR 0.5 //Hash函数冲突因子 struct HashFileHeader { int sig; //Hash文件印鉴 int reclen; //记录长度 int total_rec_num; //总记录数 int current_rec_num; //当前记录数 }; struct CFTag { char collision; //冲突计数 char free; /
2020-06-07 01:49:07
855
原创 操作系统实验三存储管理源码
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <stdlib.h> #define MAPSIZE 100 struct map //存储资源表结构 { int m_addr; int m_size; }; struct map map[MAPSIZE]; //存储资源表 //BF存储分配函数 int BF_malloc(struct map *mp,int
2020-06-07 01:33:27
1255
原创 2020-06-06
#include “math.h” #include “sched.h” #include “pthread.h” #include “stdlib.h” #include “semaphore.h” typedef struct{ //实时任务描述 char task_id; int call_num; //任务发生次数 int ci; // Ci int ti; //Ti int ci_left; int ti_left; int flag; //任务是否活跃,0否,2是 int arg;
2020-06-06 17:23:42
184
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅