![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
操作系统
文章平均质量分 80
wanghaofeng
天生我才必有用!
展开
-
银行家算法程序流程图
银行家算法程序流程图原创 2009-12-05 10:31:00 · 5255 阅读 · 0 评论 -
页面置换算法(FIFO,LRU,最佳,Clock)
页面置换算法(FIFO,LRU,最佳,Clock) #includeusing namespace std;void Print(int bc[],int blockCount){ for(int i=0;i<blockCount;i++) { cout<<bc[i]<<" "; } cout<<endl;}bool Travel(int bc原创 2009-12-19 09:49:00 · 13756 阅读 · 12 评论 -
分页地址变换
分页地址变换#include#include#includeusing namespace std;#define pageSize 2048#define addressBit 32#define maxPageAddress 2048#define maxPageCount 2097152int BinaryToDecimal(string str){原创 2010-01-11 23:59:00 · 1919 阅读 · 0 评论 -
操作系统课程设计--简单文件系统的实现
<br />#include <stdio.h> #include <memory.h> #include <string> #include <iostream> using namespace std; //1代表普通文件2代表目录文件0表示空文件 #define GENERAL 1 #define DIRECTORY 2 #define NULL 0 struct FCB { char fname[16]; //文件名 char type; int si原创 2010-07-08 09:47:00 · 22646 阅读 · 1 评论 -
操作系统课程设计--基于线程的多任务系统的实现
<br />#include<stdio.h> #include<dos.h> #include<stdlib.h> #define GET_INDOS 0X34 #define GET_GRIT_ERR 0X5D06 #define NTCB 4 /*TCB数量*/ #define NBUF 10 #define TIMEOUT 2 /*时间片轮转时间*/ #define MSIZE 50 /*线程的五种状态,即开始,完成,运行,就绪和阻塞*/ #define START原创 2010-07-08 09:45:00 · 2258 阅读 · 0 评论