文件名称:zfcp

  • 所属分类:
  • 系统编程
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2015-01-27
  • 文件大小:
  • 2kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • xuzh*****
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

(1)用C语言分别实现采用首次适应算法和最佳适应算法的动态分区分配过程alloc( )和回收过程free( )。其中,空闲分区通过空闲分区链来管理:在进行内存分配时,系统优先使用空闲区低端的空间。

(2)假设初始状态下,可用的内存空间为640KB,并有下列的请求序列:

• 作业1申请130KB。

• 作业2申请60KB。

• 作业3申请100KB。

• 作业2释放60KB。

• 作业4申请200KB。

• 作业3释放100KB。

• 作业1释放130KB。

• 作业5申请140KB。

• 作业6申请60KB。

• 作业7申请50KB。

• 作业6释放60KB。

请分别采用首次适应算法和最佳适应算法,对内存块进行分配和回收,要求每次分配和回收后显示出空闲分区链的情况。-(1) were achieved using C language used first to adapt to the dynamic partitioning algorithm and the optimum allocation process adaptation algorithms alloc () and recovery process free (). Among them, the free partition by free partition chain to management: making memory allocation, the system gives priority to the use of the free zones of low-end space. (2) assuming that the initial state, the available memory space is 640KB, and has the following sequence of requests: • Job 1 application 130KB. • Assignment 2 application 60KB. • Assignment 3 application 100KB. • Assignment 2 release 60KB. • Assignment 4 apply 200KB. • Assignment 3 release 100KB. • Operating a release 130KB. • 5 to apply for a job 140KB. • 6 to apply for a job 60KB. • 7 to apply for a job 50KB. • Job 6 release 60KB. Please cases were used for the first time and best adaptation algorithm to adapt algorithms for memory block allocation and recovery requi
(系统自动生成,下载前可以参看下载内容)

下载文件列表





zfcp.cpp

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org