|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--nachos.ag.AutoGrader
The default autograder. Loads the kernel, and then tests it using Kernel.selfTest().
| Constructor Summary | |
AutoGrader()
Allocate a new autograder. |
|
| Method Summary | |
boolean |
exceptionHandler(Privilege privilege)
Notify the autograder that a user program executed a syscall instruction was executed. |
void |
finishingCurrentThread()
Notify the autograder that the current thread has finished. |
void |
readyThread(KThread thread)
Notify the autograder that the specified thread has moved to the ready state. |
void |
runningThread(KThread thread)
Notify the autograder that the specified thread is now running. |
void |
setIdleThread(KThread idleThread)
Notify the autograder that the specified thread is the idle thread. |
void |
start(Privilege privilege,
String[] args)
Start this autograder. |
void |
timerInterrupt(Privilege privilege,
long time)
Notify the autograder that a timer interrupt occurred and was handled by software if a timer interrupt handler was installed. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public AutoGrader()
| Method Detail |
public void start(Privilege privilege,
String[] args)
privilege - encapsulates privileged access to the Nachos
machine.args - the command line arguments to Nachos.public void setIdleThread(KThread idleThread)
idleThread - the idle thread.public void readyThread(KThread thread)
thread - the thread that has been added to the ready set.public void runningThread(KThread thread)
thread - the thread that is now running.public void finishingCurrentThread()
public void timerInterrupt(Privilege privilege,
long time)
privilege - proves the authenticity of this call.time - the actual time at which the timer interrupt was
issued.public boolean exceptionHandler(Privilege privilege)
privilege - proves the authenticity of this call.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||