计算机操作系统 内存动态分配和回收模拟实现(computer operating system memory dynamic allocation and recovery simulation)
(24页)
本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦!
19.9 积分
计算机操作系统计算机操作系统 内存动态分配和回收模拟实现(内存动态分配和回收模拟实现(ComputerComputer operatingoperating systemsystem memorymemory dynamicdynamic allocationallocation andand recoveryrecovery simulationsimulation))#包括 iomanip > = size_of_notempty + min_size)还我;}返回- 1;}(int,int num,int [])/找到起始地址为 Num 的区域的下标,A0 = - 1,则在 not_empty 中,下标为 A1;A1 = 1 在空中,下标为 A0{int = i 0;(我在 > not_empty [我]。PID > > not_empty [我]。size_of_notempty;如果(not_empty [我]。PID<0 | | not_empty [我]。PID > 99){countofnotempty = 1;cout > PID;For (I = 0; I a[1]){For (i=0; i > 1){switch (i){case 1:if (fenpei () = = 0)show ();show _ empty ().break;case 2: huishou (); qsort _ empty _ address _ of _ start (empty countofempty, 0, - 1);show (); show _ empty ().break;case 3: show ();break;case 4: return 0;default: break;}court < < “* * * * * * * * * * * * * * * * * * * * * * * * * memory size:“ < < max _ size < < “* * * * * * * * * * * * * * * * * * * * * * * * * \ n“ < < endl;court < < 1, 分配; 2, 回收; 3, 内存状态; 4, exit \ n “;}return 0;} 关 键 词: 计算机 操作系统 内存 动态分配 回收 模拟 实现 computeroperatingsystemmemorydynamicallocationandrecoverysimulation
天天文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:计算机操作系统 内存动态分配和回收模拟实现(computer operating system memory dynamic allocation and recovery simulation)
链接地址: https://www.wenku365.com/p-11521676.html