mainfunction.java
来自「进程调度的设计与实现」· Java 代码 · 共 37 行
JAVA
37 行
package design;
import design.*;
import javax.swing.UIManager;
public class MainFunction extends MainFrame {
static long sl=500;
public MainFunction() {
}
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch(Exception e) {
e.printStackTrace();
}
MainFrame f=new MainFrame();
f.show();
int[] a=new int[]{0,3,2,5};
Sys_process p=new Sys_process(512,a);
p.start();
Process_productor pp=new Process_productor(p);
pp.start();
while(true){
f.setTable(p);
try{
java.lang.Thread.sleep(sl);
}
catch(Exception e){
e.printStackTrace();
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?