文件名称:memory
介绍说明--下载内容均来自于网络,请自行研究使用
内存管理实验
1. 实验目的:
用高级语言编写和调试一个内存管理程序,以加深对内存的分配、回收以及空闲块管理的理解。
2. 实验内容:
编写一个模拟程序,完成内存可变分区分配的模拟,要求采用最佳适应法、最坏适应法、首次适应法或下次适应法之一。
实验具体包括:首先确定分配内存块管理的数据结构、空闲块的数据结构,然后完成内存分配、内存回收、空闲块管理等程序代码 最后编写模拟分配和回收过程的主函数,上机实验并取得结果数据。
-Memory management in Experiment 1. Experimental purposes: the preparation of high-level language with a memory management and debugging procedures in order to deepen their understanding of memory allocation, recovery and understanding of the management of free blocks. 2. Experimental Content: to prepare a simulation program, the completion of the memory variable geographical distribution of simulation, to adopt the best adapted to law, the worst adaptation law, the first time to adapt to meet the law or the next one. Specific experiments include the following: first determine the distribution of the data memory block management structure, free block data structure, and then complete the memory allocation, memory recovery, free block management code the final preparation of the process of simulation of the distribution and recovery of the main function of the experiment and results data.
1. 实验目的:
用高级语言编写和调试一个内存管理程序,以加深对内存的分配、回收以及空闲块管理的理解。
2. 实验内容:
编写一个模拟程序,完成内存可变分区分配的模拟,要求采用最佳适应法、最坏适应法、首次适应法或下次适应法之一。
实验具体包括:首先确定分配内存块管理的数据结构、空闲块的数据结构,然后完成内存分配、内存回收、空闲块管理等程序代码 最后编写模拟分配和回收过程的主函数,上机实验并取得结果数据。
-Memory management in Experiment 1. Experimental purposes: the preparation of high-level language with a memory management and debugging procedures in order to deepen their understanding of memory allocation, recovery and understanding of the management of free blocks. 2. Experimental Content: to prepare a simulation program, the completion of the memory variable geographical distribution of simulation, to adopt the best adapted to law, the worst adaptation law, the first time to adapt to meet the law or the next one. Specific experiments include the following: first determine the distribution of the data memory block management structure, free block data structure, and then complete the memory allocation, memory recovery, free block management code the final preparation of the process of simulation of the distribution and recovery of the main function of the experiment and results data.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
memory.c