Location:
Search - neicunfenpei
Search list
Description: 模拟操作系统中的五种内存算法实现,最后输出内存空间的分配情况。-simulation of the five operating system memory algorithm, the final output of the memory space allocation.
Platform: |
Size: 2639 |
Author: 罗潇 |
Hits:
Description: 操作系统中内存分配的算法,如何进行内存的分配以及其他
Platform: |
Size: 5518 |
Author: has |
Hits:
Description: C++模拟内存分配
一、思路
模拟编译系统的内存分配与释放的,实现一些简单的操作。首先用一个静态数组模拟内存空间(buf),当调用申请内存操作时,将从数组空间(buf)返回给调用者一定的空间,当调用释放内存的时候,将将指定部分的内存标记为未用。
1.分配规则
每块被分配或释放的内存由MemInfo记录,并保存于数组(buf)中作为内存空间的“头”,其后紧跟数据。MemInfo组成链表结构,表头不占用数组空间(buf)。当调用者申请内存时,将导致MemInfo链表的遍历,遍历的目的是找到“内存碎片”,如果“碎片”大小可用,则重新利用这个“碎片”,返回给调用者。
2.释放规则
每块内存块被释放时,仅仅是将数据区标记为无用,并不删除MemInfo链表节点,这样可以重复利用,避免多次MemInfo链表操作。
Platform: |
Size: 2078 |
Author: weat |
Hits:
Description: 模拟操作系统中的五种内存算法实现,最后输出内存空间的分配情况。-simulation of the five operating system memory algorithm, the final output of the memory space allocation.
Platform: |
Size: 2048 |
Author: 罗潇 |
Hits:
Description: 操作系统中内存分配的算法,如何进行内存的分配以及其他-Operating system memory allocation algorithms, how to proceed with the allocation of memory, as well as other
Platform: |
Size: 5120 |
Author: has |
Hits:
Description: C++模拟内存分配
一、思路
模拟编译系统的内存分配与释放的,实现一些简单的操作。首先用一个静态数组模拟内存空间(buf),当调用申请内存操作时,将从数组空间(buf)返回给调用者一定的空间,当调用释放内存的时候,将将指定部分的内存标记为未用。
1.分配规则
每块被分配或释放的内存由MemInfo记录,并保存于数组(buf)中作为内存空间的“头”,其后紧跟数据。MemInfo组成链表结构,表头不占用数组空间(buf)。当调用者申请内存时,将导致MemInfo链表的遍历,遍历的目的是找到“内存碎片”,如果“碎片”大小可用,则重新利用这个“碎片”,返回给调用者。
2.释放规则
每块内存块被释放时,仅仅是将数据区标记为无用,并不删除MemInfo链表节点,这样可以重复利用,避免多次MemInfo链表操作。
Platform: |
Size: 2048 |
Author: weat |
Hits:
Description: 用c++实现内存分配,有图形化界面,用mfc写的哦-Using c++ to achieve memory allocation, a graphical interface, written using mfc Oh ... ...
Platform: |
Size: 8192 |
Author: coffeelu |
Hits:
Description: 使用Windows2000/XP 的API函数,编写一个包含两个线程的进程,一个线程用于模拟内存分配活动,一个线程用于跟踪第一个线程的内存行为。具体内容查看readme文件-Use Windows2000/XP the API functions, to prepare a process contains two threads, one thread is used to simulate memory allocation activity, a thread is used to track the first thread of memory behavior. See readme file details
Platform: |
Size: 4096 |
Author: wind |
Hits:
Description: 动态内存分配算法,用c++实现。模拟内存分配回收,可随时查看内存分配情况-Dynamic memory allocation algorithm, using c++ implementation. Analog memory allocation recovery, they can always see the memory allocation
Platform: |
Size: 240640 |
Author: kun |
Hits:
Description: 内存分配算法的模拟实现(含紧凑算法):首次适应算法、最佳适应算法、最差适应算法。-failed to translate
Platform: |
Size: 1024 |
Author: SEAN |
Hits:
Description: 这是一个基于C语言的程序,可以直接实现内存分配的功能-This is a program based on C language, can realize the function of memory allocation
Platform: |
Size: 3072 |
Author: 霓戴野 |
Hits:
Description: 内存的分配,并且对其进行回收的实验,能够很好的实现模拟功能-Memory allocation, and its recovery experiments
Platform: |
Size: 5120 |
Author: 谢昕 |
Hits:
Description: 编写一个程序,创建两个线程,一个用于内存分配,另一个用于跟踪内存的分配情况并打印信息。将VirtualAlloc函数的参数ftAllocahonType分别改为MEM_RESET或MEM_TOP_DOWN,将nProtect参数分别改为PAGE_GUARD、PAGE_NOACCESS或PAGE_NOCACHE,再进行本实习的各项操作,再查看内存分配的各个结果,分析原因。尝试调换分配、回收、内存复位、加锁、解锁、提交、回收的次序,查看结果,并分析原因。-Write a program that creates two threads, one for memory allocation and one for the memory allocation tracking and print information. To the the VirtualAlloc function parameters ftAllocahonType were to be changed MEM_RESET or MEM_TOP_DOWN nProtect parameters to be changed PAGE_GUARD, PAGE_NOACCESS or PAGE_NOCACHE, then the operation of this internship, and then view the memory allocation results, analyze the causes. Try to swap allocation, recovery, memory reset, lock, unlock, submitted a recovery order to view the results and analyze the reasons.
Platform: |
Size: 2048 |
Author: 毛越 |
Hits:
Description: 本软件实现对操作系统的内存分配功能,已经过老师检验,成绩为优秀-The software of the operating system memory allocation function
Platform: |
Size: 6144 |
Author: zhoumo |
Hits: