首次适应算法.docxVIP

  • 8
  • 0
  • 约8.49千字
  • 约 10页
  • 2021-01-14 发布于山东
  • 举报
首次适应算法 import java.util.Scanner; class Freearea { int stadd ; // 起始地址 int size ; // 分区大小 int state ; // 空闲区状态, 0 为空分区,  1 表示空闲分区 public Freearea( int estadd, int stadd =estadd; size =esize; state =estate;  esize, int estate){ } public  static  void  main(String[] args){ Freearea h[]={  new  Freearea(20,20,1),  new  Freearea(80,50,1),  new Freearea(300,30,0), new Freearea(600,100,1),  new Freearea(700,200,1)}; System. out .println( 空闲分区表如下图所示 ); System. out .println( 首地址 空间大小 状态); for ( int i=0;i5;i++){ System. out .println( 第 +(i+1)+ 块+ +h[i]. stadd + +h[i]. size + +h[i].

文档评论(0)

1亿VIP精品文档

相关文档