动态分区的分配与回收
#include
#include
#include
constintmaxlength=10;//空闲分区最大个数
intlength=1;//空闲分区实际个数
constintminsize=5;//规定的不再切割的剩余分区的大小
intrequest;//进程申请的分区大小
HANDLEmutex;//信号量用于控制各进程互斥访问空闲分区表
constintmax=8;//最多的进程个数
staticinta;//进程号
//声明结构
structempty
下载地址
用户评论