資源簡介
實現內存動態分區,運用Java語言,一共四個類,這是process類
代碼片段和文件信息
public?class?process?{
private?int?cometime;
private?int?size;
private?int?holdtime;
private?int?startAddress=-1;
private?int?intime=-1;
public?int?getIntime()?{
return?intime;
}
public?void?setIntime(int?intime)?{
this.intime?=?intime;
}
public?process(int?cometime?int?size?int?holdtime)?{
super();
this.cometime?=?cometime;
this.size?=?size;
this.holdtime?=?holdtime;
}
public?process()?{
//?TODO?Auto-generated?constructor?stub
}
@Override
public?String?toString()?{
return?“process?[cometime=“?+?cometime?+?“?size=“?+?size?+?“?holdtime=“?+?holdtime?+?“?startAddress=“
+?startAddress?+?“?intime=“?+?intime?+?“]“;
}
評論
共有 條評論