登录
首页 » 操作系统 » 扩展的动态内存机制 任务综述 本任务扩展了自己私有的内存管理机制。首先使用预先规划的思想,使用预先分配的内存池和内存分区,再通过使用消息队列作为内...

扩展的动态内存机制 任务综述 本任务扩展了自己私有的内存管理机制。首先使用预先规划的思想,使用预先分配的内存池和内存分区,再通过使用消息队列作为内...

于 2022-10-26 发布 文件大小:30.31 kB
0 97
下载积分: 2 下载次数: 1

代码说明:

扩展的动态内存机制 任务综述 本任务扩展了自己私有的内存管理机制。首先使用预先规划的思想,使用预先分配的内存池和内存分区,再通过使用消息队列作为内存池的管理机制处理内存块分配与释放的过程,而消息队列中保存的是每个预先申请内存块的地址。当用户需要分配一个内存块时,使用msgQReceive() 函数从消息队列中获取一个相应大小的内存块地址;当用户需要释放一个内存块时,则使用msgQSend()函数将内存块首地址发送回消息队列中。通过这种方法,减少了内存反复申请与释放产生外部碎片的可能,并能够有效利用预先分配的思想减少内部碎片。同时也通过消息队列的特性实现了方便的内存块申请与释放的管理操作。 同时,本系统作为扩展的动态内存管理机制,引入了定制的内存分配与释放功能,使用了互斥机制保证操作安全性和一系列告警机制。在保证内存分配与释放安全有序的基础上,还增加了管理监视机制。 其系统具体实现参照系统实现部分。-none

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 原理实验――进程调度实验报告 实验内容或题目: 1)设计有5个进程并发执行的模拟调度程序,每个程序由一个PCB表示。 2)模拟调度程序可任选...
    操作系统原理实验――进程调度实验报告 实验内容或题目: 1)设计有5个进程并发执行的模拟调度程序,每个程序由一个PCB表示。 2)模拟调度程序可任选两种调度算法之一实现(有能力的同学可同时实现两个调度算法)。 3)程序执行中应能在屏幕上显示出各进程的状态变化,以便于观察调度的整个过程。 4)本次实验内容(项目)的详细说明以及要求请参见实验指导书。 -Operating principle experiment- the process of scheduling the content or subject experiment on the experiment: 1) design process, concurrent implementation of the five simulation scheduler, each program consists of a PCB, said. 2) The simulation scheduler can be optional, one of two kinds of scheduling algorithm to achieve (with the ability of students can simultaneously achieve the two scheduling algorithms). 3) program implementation should be able to screen out the process of change of state in order to observe the entire process of scheduling. 4) The content of this experiment (project) and to require a detailed explanation, see the experimental instructions.
    2022-03-17 08:42:49下载
    积分:1
  • 最新版本,1.16版本的ARM(的7TDMI,720T,920T)对uC/OS移植
    The latest release, ver 1.16 of the ARM (7TDMI, 720T, 920T) port for uC/OS-II V2.61 (and higher) includes ports for the following platforms: 1. S3c2410x ( ARM920T from Samsung ) on SMDK2410 eval board. 2. LPC2xxx - LPC210x & LPC213x ( ARM7TDMI-S from Philips ) on IAR s Kickstart & OLIMEX boards. 3. EP7312 ( ARM720T from CIRRUS ) on CDK238 eval board. Should also work on boards based on the CS89712. Tool-chains: GCC 3.3.2, ADS 1.2 & SDT 2.51. Op-modes: Pure ARM & ARM-THUMB interworked. Endianess: Big endian & Little endian modes-The latest release, ver 1.16 of the ARM (7TDMI, 720T, 920T) port for uC/OS-II V2.61 (and higher) includes ports for the following platforms: 1. S3c2410x ( ARM920T from Samsung ) on SMDK2410 eval board. 2. LPC2xxx- LPC210x & LPC213x ( ARM7TDMI-S from Philips ) on IAR s Kickstart & OLIMEX boards. 3. EP7312 ( ARM720T from CIRRUS ) on CDK238 eval board. Should also work on boards based on the CS89712. Tool-chains: GCC 3.3.2, ADS 1.2 & SDT 2.51.
    2023-09-06 15:45:03下载
    积分:1
  • 本次程序的题目为:进程管理――支持多个进程并发运行的简单的进程管理模拟,对本实验的分析要求是:⑴中的同步机构采用信号量上的P、V的机制;⑵控制机构包...
    本次程序的题目为:进程管理――支持多个进程并发运行的简单的进程管理模拟系统,对本实验的分析要求是:⑴系统中的同步机构采用信号量上的P、V操作的机制;⑵控制机构包括阻塞和唤醒操作;⑶时间片中断处理程序处理模拟的时间片中断;⑷进程调度程序负责为各进程分配处理机;⑸根据用户的需求来创建n个进程(n为即满足用户需求,又不超出系统可容的最大进程数),各进程互斥地访问使用临界资源 S1、S2;⑹使用动态优先数(如:随阻塞次数的增加而减小优先数,以提高其优先权);⑺进程结束后应能够撤消;⑻进程间能实现“发送”和“接收”两个消息缓冲通信操作;⑼系统在运行过程中随机打印出各进程的状态变换过程、系统的调度过程及公共变量的变化情况,在一个进程运行完毕,进入完成状态后,可以将该进程撤消,也可以动态的创建另一个新的进程。-the procedures on the topic of : process management-- to support multiple concurrent processes running a simple process management simulation system for the analysis of the experimental requirements are : 1 system of institutions using synchronous signals on the amount of P, V operation of the mechanism; 2 control agencies, including obstruction and awaken operation ; 3-time interrupt handling procedures-time simulation of interruption; 4 process scheduler is responsible for the allocation process processors; together according to the user"s needs to create process n (n that meet user needs, without exceeding the system can accommodate
    2022-11-14 01:00:03下载
    积分:1
  • 模拟中的银行家算法,1.txt的录入格式 进程名(单字符),所需a资源数,所需b资源数,所需c资源数,已申请a资源数,已申请b资源数,已申请c资源数...
    模拟操作系统中的银行家算法,1.txt的录入格式 进程名(单字符),所需a资源数,所需b资源数,所需c资源数,已申请a资源数,已申请b资源数,已申请c资源数 共5行-The Banker Algorithm
    2022-03-21 16:11:49下载
    积分:1
  • 测试还未成功,主要是在winNT和2000下远程隐藏进程
    测试还未成功,主要是在winNT和2000下远程隐藏进程-Test has not been successful, mainly in the WinNT and 2000 long-range hidden under the process of
    2022-05-08 03:23:10下载
    积分:1
  • 课程设计
    操作系统课程设计- The operating system curriculum designs
    2022-03-30 08:28:33下载
    积分:1
  • 引导程序
    操作系统引导程序-operating system boot
    2023-08-13 17:35:03下载
    积分:1
  • a complete multi
    一个完整的多用户银行家算法-a complete multi-user bankers Algorithm
    2022-03-25 06:57:18下载
    积分:1
  • 银行家算法,希望大家喜欢
    银行家算法,希望大家喜欢-bankers algorithm, hope you like
    2022-12-09 08:25:02下载
    积分:1
  • 一本bios的手册,经典的东西.
    一本bios的手册,经典的东西.-A bios handbook,a classical handbook.
    2023-04-13 08:30:04下载
    积分:1
  • 696518资源总数
  • 105554会员总数
  • 2今日下载