- 20070824231942134 光伏水泵的P控制
- 185 基于MCGS锅炉液位和温度控制系统的设计
- Image-processing-algorithms 多种图像处理算法
- MFCHtml 在MFC中使用浏览器在MFC 中微软为我们提供了CHtmlView
- 5356 Calculation crosshairs diffraction image at different distances
- FATFS11 文件管理系统 将数据一txt格式存储至内存卡中(The file management system stores data in a TXT format to the memory card)
文件名称:buddy_算法
介绍说明--下载内容来自于网络,使用问题请自行百度
Buddy(伙伴)算法每次分配包含一个或者多个物理页面的内存块,页面以2的次幂的内存块来分配。首先搜寻满足请求大小的页面,它从满足当前申请大小的Buddy数据结构的m_ freePages域着手沿链来搜索空闲页面。如果没有这样请求大小的空闲页面,则它搜索两倍于请求大小的内存块。这个过程一直将持续到所有的Buddy 被搜索完或找到满足要求的内存块为。如果找到的页面块大于请求的块则对其进行分割以使其大小与请求块匹配。由于块大小都是2的次幂所以分割过程十分简单:空闲块(低地址)被连进相应大小的队列而这个页面块被分配给调用者。 释放时,先检查该块的伙伴的使用情况,如果没有被使用,则合并这对Buddy,再检查该两倍大小的块的Buddy,一直持续到合并后的块没有Buddy为止,并将之链到该大小的freepage队列中。-Buddy (partners) each allocation algorithm contains a number of physical pages or blocks of memory, two pages to the Powers of the block of memory to allocate. First of all search requests to meet the size of pages, from the application to meet the current size of the data structure Buddy 8 freePages domain proceed along the chain to search leisure pages. If no such request size spare pages, which then search request twice the size of a memory block. This process has to continue until all the Buddy Search End or were found to meet the requirements for the memory block. If found in the pages block greater than the requested block is divided in its size and make it the request block matching. As pieces are the two Powers So segmentation process is very simple : free block (low-address) was e
(系统自动生成,下载前可以参看下载内容)
下载文件列表
buddy算法.txt
www.dssz.com.txt
www.dssz.com.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
