- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
存储器分配(Memory allocation)
存储器分配(Memory allocation)
Experiment (three) simulated memory allocation algorithm
1, the purpose of the experiment
Understanding the data structure and allocation algorithm used in the dynamic partitioning method, and further understanding of the dynamic partition storage management and its implementation process.
2, experimental content
(1) the dynamic partition allocation process (alloc ()) and the recovery process free (C) are implemented by using the first language adaptation algorithm and the best adaptation algorithm respectively. The free partitions are managed by the free partition chain; when the memory allocation is carried out, the system uses the free space at the end of the free zone first.
(2) assuming the initial state, the available memory space is 640KB and has the following sequence of requests:
* homework 1, apply for 130KB.
* homework 2, apply for 60KB.
* homework 3, apply for 100KB.
* homework 2 release 60KB.
* homework 4, apply for 200KB.
* homework 3 release 100KB.
* homework 1 release 130KB.
* homework 5, apply for 140KB.
* homework 6, apply for 60KB.
* homework 7, apply for 50KB.
* homework 6 release 60KB.
The allocation and recovery of memory blocks should be carried out by using the first adaptation algorithm and the best adaptation algorithm respectively, and the partition chain of idle memory is required after each allocation and recovery.
3, thinking
(1) whats the difference between memory allocation and recovery speed by using the first adaptation algorithm and the best adaptation algorithm?
(2) how to solve the problem of memory allocation speed reduction caused by fragmentation?
*
Explain:
1, the first adaptation algorithm: requires the idle partition chain to address the increase in the order of the link, in the allocation of memory, from the beginning of the chain of order in order to find the required to meet the idle partition so far;
2, the best adaptation algorithm: requires all idle partitions to form an idle partition chain i
您可能关注的文档
- xp启动慢的解决方法(XP start slow solution).doc
- writeline(听听听听听听听听听听听听听).doc
- xp通用快捷键(XP universal shortcut key).doc
- xs128一般模块配置(Xs128 general module configuration).doc
- xp系统变快(The XP system is fast).doc
- xinwen(行业新闻).doc
- xx县在全市人口与资源环境工作会上的发言(Speech by XX County in the city's population, resources and Environment Conference).doc
- xx市2006年上半年畜牧和粮油生产等主要统计数据质量…(XX City in the first half of 2006, livestock and grain and oil production and other major statistical data quality...).doc
- xx市2006年干部教育培训工作要点(Main points of cadre education and training in XX City in 2006).doc
- xx镇2006年上半年工作完成情况汇报材料(XX town in the first half of 2006 completion of the work report material).doc
- 2025至2030中国生物活性蛋白和肽行业产业运行态势及投资规划深度研究报告.docx
- 2025至2030中国化学硬化剂化合物行业发展趋势分析与未来投资战略咨询研究报告.docx
- 2025至2030中国直光管行业市场行业调研及市场前景预测评估报告.docx
- 2025至2030中国智慧校园行业市场深度调研及发展前景及有效策略与实施路径评估报告.docx
- 2025至2030中国汽车人工智能行业运营态势与投资前景调查研究报告.docx
- 2025至2030营刀行业产业运行态势及投资规划深度研究报告.docx
- 2025至2030中国安全镜行业产业运行态势及投资规划深度研究报告.docx
- 2025至2030银饰行业市场深度调研及发展趋势与投资报告.docx
- 2025至2030中国混炼胶市场需求量预测及应用前景分析报告.docx
- 2025至2030中国安石榴甙行业项目调研及市场前景预测评估报告.docx
文档评论(0)