⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainfunction.java

📁 进程调度的设计与实现
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -