nachos.machine
Class Kernel
java.lang.Object
|
+--nachos.machine.Kernel
- Direct Known Subclasses:
- ThreadedKernel
- public abstract class Kernel
- extends Object
An OS kernel.
|
Field Summary |
static Kernel |
kernel
Globally accessible reference to the kernel. |
|
Constructor Summary |
Kernel()
Allocate a new kernel. |
|
Method Summary |
abstract void |
initialize(String[] args)
Initialize this kernel. |
abstract void |
run()
Begin executing user programs, if applicable. |
abstract void |
selfTest()
Test that this module works. |
abstract void |
terminate()
Terminate this kernel. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
kernel
public static Kernel kernel
- Globally accessible reference to the kernel.
Kernel
public Kernel()
- Allocate a new kernel.
initialize
public abstract void initialize(String[] args)
- Initialize this kernel.
selfTest
public abstract void selfTest()
- Test that this module works.
Warning: this method will not be invoked by the autograder when
we grade your projects. You should perform all initialization in
initialize().
run
public abstract void run()
- Begin executing user programs, if applicable.
terminate
public abstract void terminate()
- Terminate this kernel. Never returns.