
操作系统
文章平均质量分 90
阿阿阿扶
学习分享
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
银行家算法实现(操作系统实验)
#include <string.h> #include<iostream.h> #define FALSE 0 #define TRUE 1 #define W 10 #define R 20 int M; int N; int ALL_RESOURCE[W]; int AVAILABLE[R]; int MAX[W][R]; int ALLOCATION[W][R]; //分配矩阵 int NEED[W][R]; //需求矩阵 int Request[R]; .原创 2022-05-23 23:03:27 · 2025 阅读 · 0 评论 -
Pintos project2 实验报告
project2是在src/userprog中进行代码修改,主要分为参数分离和系统调用者两大任务。 任务一 参数传递 用到的相干目录:pintos/src/userprog/process.c thread.h synch.h 在这个任务中,我们主要修改"process.c"和处理字符串。同时,为了测试我们的算法在此任务中的正确性,我们还必须在'syscall.c'中实现其他功能 预期pass:aggs-xxxx 具体修改如下: 修改<process.c> : 修改函数原创 2022-05-15 23:44:51 · 5876 阅读 · 8 评论 -
Pintos project 1 实验报告(代码分享)
任务一 Alarm Clock 用到的相干目录有: pintos/src/devices time.h && time.c pintos/src/threads thread.h && thread.c 预期pass希望:暂无,安装pintos之后,第一次对threads进行make check操作,可以发现以alarm--开头的前六个文件,以及mlfqs-fair-2和mlfqs-fair-20文件,一开始就测试成功pass。但是为了避免对后期的修改有影响,这里还是要原创 2022-05-11 12:07:34 · 6524 阅读 · 50 评论