kernel.java

来自「nachos操作系统框架」· Java 代码 · 共 46 行

JAVA
46
字号
// PART OF THE MACHINE SIMULATION. DO NOT CHANGE.package nachos.machine;/** * An OS kernel. */public abstract class Kernel {    /** Globally accessible reference to the kernel. */    public static Kernel kernel = null;    /**     * Allocate a new kernel.     */    public Kernel() {	// make sure only one kernel is created	Lib.assert(kernel == null);		kernel = this;    }    /**     * Initialize this kernel.     */    public abstract void initialize(String[] args);        /**     * Test that this module works.     *     * <b>Warning:</b> this method will not be invoked by the autograder when     * we grade your projects. You should perform all initialization in     * <tt>initialize()</tt>.     */    public abstract void selfTest();        /**     * Begin executing user programs, if applicable.     */    public abstract void run();    /**     * Terminate this kernel. Never returns.     */    public abstract void terminate();}

⌨️ 快捷键说明

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