|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnachos.kernel.userprog.test.ProgTest
public class ProgTest
This is a test class for demonstrating that Nachos can load a user program and execute it.
Field Summary | |
---|---|
private java.lang.String |
execName
The name of the program to execute. |
Constructor Summary | |
---|---|
ProgTest(java.lang.String filename)
Start the test by creating a new address space and user thread, then arranging for the new thread to begin executing the run() method of this class. |
Method Summary | |
---|---|
void |
run()
Entry point for the thread created to run the user program. |
static void |
start(java.lang.String[] args)
Entry point for the test. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String execName
Constructor Detail |
---|
public ProgTest(java.lang.String filename)
filename
- The name of the program to execute.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public static void start(java.lang.String[] args)
args
- Command line arguments that name the program to be
executed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |