自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除