【Linux课程设计】可变分区最佳适应算法源代码要点.docVIP

  • 8
  • 0
  • 约5.66千字
  • 约 8页
  • 2016-04-27 发布于湖北
  • 举报

【Linux课程设计】可变分区最佳适应算法源代码要点.doc

#includestdio.h #includemalloc.h #includestring.h #includestdlib.h //采用最佳适应算法来实现可变分区的管理 //数据结构的设计 typedef struct node { char name[10];//作业的名字 int start, length;//作业的起始地址和长度 struct node *next;//链表结构体 }*table; //为合并空闲区表而临时增加的一个数据结构 //将空闲表中的数据项都存在这个结构的数组中 //然对这个数组进行排序,最后得到从小到大的空闲区表 struct pnode { int start,length;//起始地址和长度 }; int menu()//选择菜单 { int n; for(; ;) { printf( ________________________\n); printf(****************|最佳适应算法进行可变分区|***************\n); printf(*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*\n); printf(* 1输入作业数

文档评论(0)

1亿VIP精品文档

相关文档