动态分区算法模拟.docVIP

  • 0
  • 0
  • 约1.3千字
  • 约 6页
  • 2020-04-09 发布于湖北
  • 举报
图4 运行显示图(b图5 运行显示图(c 课程设计说明书 { No21 printf(at first the free memory is this:\n; adjust(; /*对空闲区表中的空闲区调整的函数*/ print(; /*打印空闲区表的初始状态*/ printf(input request memory size:; scanf(%d,applyarea;/*输入作业的申请量*/ start=alloc3(applyarea;/*调用 alloc(函数为作业分配空间,start 为返回的始地址*/ if(start==-1 /*alloc(分配不成功时,返回-1*/ printf(there is no fit memory,please wait\n; else { adjust(; printf(after allocation,the free memory is this:\n; print(; /*打印空闲区表*/ printf(jobs memory start address is:%d\n,start; printf(job size is:%d\n,applyarea; printf(job is running.\n; printf(job is terminated.\n; } for(j=1;j100000;j++;/*延迟时间*/

文档评论(0)

1亿VIP精品文档

相关文档