public class OSProcess{
private String name; //进程名
private OSProcess next;//指向下一个进程
private int run_time; //要求运行时间
private int allo_time;//已运行时间
private int req_time;//还需要运行时间
private char state;//状态
private int pri;//优先数
public OSProcess(){}
//构造方法1 优先权方法
public OSProcess(String name, int run_time, int pri, char state) {
this.name = name;
this.run_time = run_time;
this.pri=pri;
this.state = state;
}
//构造方法2 时间片轮转方法
public OSProcess(String name, int run_time, char state, int allo_time) {
this.name = name;
this.run_time = run_time;
this.allo_time = allo_time;
this.state = state;
}
public String getName() {
return name;
}
public void setName(String name) {