-
扩展的动态内存机制
任务综述
本任务扩展了自己私有的内存管理机制。首先使用预先规划的思想,使用预先分配的内存池和内存分区,再通过使用消息队列作为内...
扩展的动态内存机制
任务综述
本任务扩展了自己私有的内存管理机制。首先使用预先规划的思想,使用预先分配的内存池和内存分区,再通过使用消息队列作为内存池的管理机制处理内存块分配与释放的过程,而消息队列中保存的是每个预先申请内存块的地址。当用户需要分配一个内存块时,使用msgQReceive() 函数从消息队列中获取一个相应大小的内存块地址;当用户需要释放一个内存块时,则使用msgQSend()函数将内存块首地址发送回消息队列中。通过这种方法,减少了内存反复申请与释放产生外部碎片的可能,并能够有效利用预先分配的思想减少内部碎片。同时也通过消息队列的特性实现了方便的内存块申请与释放的管理操作。
同时,本系统作为扩展的动态内存管理机制,引入了定制的内存分配与释放功能,使用了互斥机制保证操作安全性和一系列告警机制。在保证内存分配与释放安全有序的基础上,还增加了管理监视机制。
其系统具体实现参照系统实现部分。-none
- 2022-10-26 02:25:03下载
- 积分:1
-
内存使用查看器
这是查看计算机中所有内存的一种非常简单的方法。大多数代码只是自我解释
- 2022-02-03 13:28:10下载
- 积分:1
-
内核,是一个操作系统的核心。它负责管理系统的进程、内存、设备驱动程序、文件和网络系统,决定着系统的性能和稳定性。Linux作为一个自由软件,在广大爱好者的支持下...
内核,是一个操作系统的核心。它负责管理系统的进程、内存、设备驱动程序、文件和网络系统,决定着系统的性能和稳定性。Linux作为一个自由软件,在广大爱好者的支持下,内核版本不断更新。新的内核修订了旧内核的bug,并增加了许多新的特性。如果用户想要使用这些新特性,或想根据自己的系统度身定制一个更高效,更稳定的内核,就需要重新编译内核。本文将以RedHat Linux 6.0(kernel 2.2.5)为操作系统平台,介绍在Linux上进行内核编译的方法。
-Kernel is the core of an operating system. It is responsible for the process management system, memory, device drivers, files, and network system determines the system performance and stability. Linux as a free software, the majority of fans support, kernel version constantly updated. The core of the new amendments to the old kernel bug, and adds many new features. If users want to use these new features, or would like to according to their own system tailored to a more efficient, more stable core, will need to recompile the kernel. This article will be RedHat Linux 6.0 (kernel 2.2.5) for the operating system platform, introduced in the Linux kernel compile on approach.
- 2022-01-26 08:22:41下载
- 积分:1
-
标题:读和写注册表文件的例子
用visualbasic编的
标题:读和写注册表文件的例子
用visualbasic编的-Title : read and write registry document examples of the series with visualbasic
- 2022-09-30 16:15:02下载
- 积分:1
-
Windows1.0 【1985年珍藏版】
Windows1.0 【1985年珍藏版】-Windows1.0 1985 01/23/2006 :
- 2022-01-22 01:55:39下载
- 积分:1
-
存储分区的可变管理
存储分区的可变管理-variable storage area management
- 2023-05-14 22:05:03下载
- 积分:1
-
Operating system, application of the calculation method of the realization of th...
操作系统的应用计算法的实现,先进先出最高响应比-Operating system, application of the calculation method of the realization of the maximum response ratio FIFO
- 2022-09-04 22:00:02下载
- 积分:1
-
ucosII的33个经典例题,均调试通过的,学习ucosII的捷径,强烈推荐!因文件太多,分成了5个上载,请大家谅解!...
ucosII的33个经典例题,均调试通过的,学习ucosII的捷径,强烈推荐!因文件太多,分成了5个上载,请大家谅解!-ucosII of 33 classic examples, both through debugging and learning ucosII shortcut, strongly recommended! Because too many documents, divided into five available, please understanding!
- 2022-03-20 00:35:08下载
- 积分:1
-
windows XP操作系统全面、简化,学用方便,几学时解决问题
windows XP操作系统全面、简化,学用方便,几学时解决问题-windows XP operating system, a comprehensive, simplified, learning to use convenient, a few hours to solve the problem
- 2022-03-11 01:48:07下载
- 积分:1
-
网络变程事例,采用服务器/客户端模式实现点对点文件传输功能。...
网络变程事例,采用服务器/客户端模式实现点对点文件传输功能。-Network change process examples, the use of server/client model to achieve peer-to-peer file transfer function.
- 2022-02-11 15:56:05下载
- 积分:1