process.java~23~

来自「进程调度和存储管理模拟」· JAVA~23~ 代码 · 共 45 行

JAVA~23~
45
字号
package cn.edu.cauc.crab.ossimulate;/** * * <p>Title: OS simulate</p> * <p>Description: This is my home work.</p> * <p>Copyright: Copyleft (c) 2004</p> * <p>Company: CAUC</p> * @author Crab * @version 0.1 *//** * To simulate process, to make it simple, <br> * I don't let it have instructions, <br> * I think if I will write the next version, <br> * I will let it more like true process.:) <br> * * @author Crab * @version 0.1 */public class Process {    private int time;    /** Construct a Process.     * @param time A int to show how long will the process run.     */    public Process(int time) {        this.time = time;    }    /** Get the time of this process.     * @return int the time of this process.     */    public int getTime() {        return time;    }    /** For the Unit test.     */    public static void main(String[] args) {        Process process1 = new Process(3);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?