存储管理源代码

所属分类:书籍源码
开发工具:Visual C++
文件大小:6KB
下载次数:89
上传日期:2005-12-28 13:05:49
上 传 者Joly820
说明:  分区式存储管理源代码 一、可变分区存储管理的基本策略 1)不预先划分几个固定分区,分区的建立是在作业的处理过程中进行的,各分区的大小由作业的空间需求量决定。 2)采用指针方式将各个空闲分区链接而成的链表,用以记录主存分配现状。 3)分配与回收算法按空闲分区链接方式的不同分类,有最佳、最坏、首次和下次适应四种算法。 二、程序模拟的设计 1、基本思想 采用事件驱动模型。事件有: 1)申请主存事件,表示一个作业创建时提出的主存资源要求; 2)释放主存事件,表示一个作业结束时其占用主存被回收。 2、数据结构设计 ...... typedef struct Event_DataType{事件数据类型的定义intEventType事件的类型 申请ASK或释放RELEASE int OccurTime 事件发生的时间 char JobName 申请主存或被回收主存的作业名 int JobId 进入系统的作业在作业表中相应表项的编号 int SizeOfMemoryForAsk 作业申请占用主存的尺寸 int OccupyTimeOfMemoryForAsk 作业申请占用主存的时间长度 int WaitFlag 该事件是否等待过TRUE或FALSE
(storage management through source code one, Variable storage management through the basic strategy of a) not divided into several pre-fixed Division, through the establishment of operations in the processing of the district by the size of demand for space operations decision. 2) use of the various methods pointer idle through link from the linked list, to record the status quo distribution of the main deposit. 3) the allocation and recovery algorithm by idle through links to the different classifications, the best and the worst, the first four and the next adaptation algorithms. Two, the program simulates a design, the basic idea using event-driven model. Events are : a) for the main deposit, said an operation created when the main deposit resource requirements; 2) The release of the main )

文件列表:
存储管理源代码.doc (45056, 2005-12-28)

近期下载者

相关文件


收藏者