#include<iostream>#include<fstream>using namespace std;#define BlockSize 10#define PageSize 100 int page[PageSize]; //页面数组存放页面int block[BlockSize]; //物理块数组int resul...
页面调度算法(FIFO,LRU,OPT)2006-11-22 19:29 #include< iostream.h > #include"stdlib.h" typedef int QElemType; #define ok 1 #define overflow 0 #define error 0 typedef struct Qnode { ...
目录1 需求分析............................................................................................................ 21.1 目的和要求............................................................................
湖南农业大学信息科学技术学院学 生 实 验 报 告 姓名: 汤黎波 年级专业班级 06计教班 日期 2008 年 11 月 25日 成绩
#include<iostream.h>#include <stdlib.h>#include <time.h>#include <stdio.h>#define L 20//页面走向长度最大为20int M; //内存块struct Pro//定义一个结构体{ int num,time;};Input(int m,Pro p...
#include"stdio.h" #include"stdlib.h" #include"time.h" #define M 4 #define MAX 1000 typedef struct page{ int num; }Page; Page y[10]; typedef struct paage{ ...
学号: xxxxxx学院学 生 实 验 报 告
#include<iostream>#include<vector>using namespace std;int n; typedef struct Queue{int time;int data;struct Queue *next;}Queue,*QueuePtr;typedef struct {QueuePtr front;QueuePtr rear;}LinkQu...
实验四 页面置换算法一、 实验目的理解并掌握模拟分页式虚拟存储管理的缺页中断,以及选择页面调度算法处理缺页中断。二、 实验内容及要求选择一种或几种页面置换算法进行编程以实现该算法。三、 实验流程图