-
subject_3
对于OPT算法,在有多个页面可选的情况下,先淘汰较早进入的页面)。
3. 计算缺页次数及缺页率。
测试用例格式如下:
输入:
算法(1 OPT,2 FIFO,3 LRU)
内存块数
页面序列(页面1,页面2,页面3,...)
输出:
页面变化时内存块装入页面列表1-是否命中/页面变化时内存块装入页面列表2-是否命中/...
缺页次数
其中:
页面变化时内存块装入页面列表:内存块1装入页面,内存块2装入页面,内存块3装入页面...,未装入任何页面时由 -”表示
是否命中:1-命中,0-缺页">
- 2021-04-27 00:48:45下载
- 积分:1
-
yinhangjiasuanfa
这是我做的操作系统里面的银行家算法的源程序,发上来供大家参考。(caozuoxitongyinhangjiasuanfa)
- 2009-05-22 23:40:08下载
- 积分:1
-
shiyan4
广东工业大学计算机学院操作系统4源代码 (Guangdong University of Computer Science 4 source code operating system)
- 2013-01-15 17:20:42下载
- 积分:1
-
Simwumpus
经典问题魔兽世界(wumpus world)的程序,还比较简单,只能在dos下文字表示,没有图示(classic World of Warcraft (chat world) procedures, but also relatively simple, only under the dos text, there is no icon)
- 2020-11-15 13:19:41下载
- 积分:1
-
system
操作系统作业源代码,方便学习操作系统课程的同学使用 (this is the codes for students who learn computer system.)
- 2013-12-30 21:07:39下载
- 积分:1
-
Operating-System-B-test-reports
开发一个仿真操作系统,要求具备进程调度、存储器管理、文件及设备管理等基本功能(The development of a simulation operating system, requires scheduling process, the basic functions of memory management, file and device management)
- 2015-05-16 12:35:39下载
- 积分:1
-
LRU
利用LRU算法仿真请求页面系统
1、设计内容:用高级语言编写和调试一个内存分配程序,加深对内存分配算法的理解。
2、设计要求:
1) 实现请求分页存储管理方式的页面置换算法:近期最久未使用算法(LRU)
2) 内存物理块数固定为3个,对多个作业采用可变分配全局置换的策略分配物理块
3) 作业数量与作业大小(0-9页)可在界面进行设置
4) 所有作业按RR算法进行调度,时间片长度为1秒
5) 可为每个作业随机产生引用的页面串,也可以人工输入引用的页面串,页面串长度50---100,要求必须包括作业所有的页面,可作为样例数据保存
6) 可读取样例数据(要求存放在外部文件中)进行作业数量、作业大小、页面串长度的初始化
7) 要求采用可视化界面,模拟内存分配和使用情况图,可在运行过程中随时暂停,查看当前内存物理块使用情况。
8) 每次全部作业运行结束后,要求打印出访问命中率
(Request page using LRU algorithm simulation system)
- 2011-07-06 17:33:06下载
- 积分:1
-
FIFOLRU
1.虚拟存储器的引入
局部性原理:程序在执行时在一较短时间内仅限于某个部分;相应的,它所访问的存储空间也局限于某个区域,它主要表现在以下两个方面:时间局限性和空间局限性。
2.虚拟存储器的定义
虚拟存储器是只具有请求调入功能和置换功能,能从逻辑上对内存容量进行扩充的一种存储器系统
(1. The introduction of virtual memory locality principle: program execution in a relatively short period of time limited to a particular part of it Accordingly, it has access to the storage space is also limited to a particular region, it is mainly manifested in the following two aspects: the time limitations and space limitations. 2. The definition of virtual memory Virtual memory is just a request for redeployment of functions and displacement functions, from the logical to expand the memory capacity of a memory system)
- 2010-01-08 15:10:19下载
- 积分:1
-
ch01
说明: ucos2 vc++移植代码 通过VC++编译,每2S显示一次任务(ucos2 vc++ code migration)
- 2010-03-18 21:32:43下载
- 积分:1
-
OS
说明: 包含操作系统全部试验以及实验报告,稍微修改下就可以了(Contains the operating system all the tests and lab reports, a slight modification can be the next)
- 2010-05-26 11:29:03下载
- 积分:1