|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnachos.machine.Kernel
nachos.threads.ThreadedKernel
nachos.userprog.UserKernel
public class UserKernel
A kernel that can support multiple user processes.
Field Summary | |
---|---|
static SynchConsole |
console
Globally accessible reference to the synchronized console. |
Fields inherited from class nachos.threads.ThreadedKernel |
---|
alarm, fileSystem, scheduler |
Fields inherited from class nachos.machine.Kernel |
---|
kernel |
Constructor Summary | |
---|---|
UserKernel()
Allocate a new user kernel. |
Method Summary | |
---|---|
static UserProcess |
currentProcess()
Returns the current process. |
void |
exceptionHandler()
The exception handler. |
void |
initialize(String[] args)
Initialize this kernel. |
void |
run()
Start running user programs, by creating a process and running a shell program in it. |
void |
selfTest()
Test the console device. |
void |
terminate()
Terminate this kernel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static SynchConsole console
Constructor Detail |
---|
public UserKernel()
Method Detail |
---|
public void initialize(String[] args)
initialize
in class ThreadedKernel
public void selfTest()
selfTest
in class ThreadedKernel
public static UserProcess currentProcess()
public void exceptionHandler()
When the exception handler is invoked, interrupts are enabled, and the processor's cause register contains an integer identifying the cause of the exception (see the exceptionZZZ constants in the Processor class). If the exception involves a bad virtual address (e.g. page fault, TLB miss, read-only, bus error, or address error), the processor's BadVAddr register identifies the virtual address that caused the exception.
public void run()
run
in class ThreadedKernel
Machine.getShellProgramName()
public void terminate()
terminate
in class ThreadedKernel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |