|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnachos.kernel.Nachos
public class Nachos
The Nachos main class. Nachos is "booted up" when a Java thread calls the main() method of this class.
Field Summary | |
---|---|
private static java.lang.String[] |
args
Array containing the command-line arguments passed to main(). |
private static java.lang.String |
copyright
|
private static boolean |
DISK
Are we going to be using the disk? NOTE: We need the disk if either we are using the "real" Nachos filesystem, or else we are using the disk as backing store for virtual memory. |
static DiskDriver |
diskDriver
Access to the Nachos disk driver. |
private static boolean |
FILESYS
Are we going to be using the filesystem? |
private static boolean |
FILESYS_STUB
Should we use the stub filesystem, rather than the Nachos filesystem? NOTE: if FILESYS is true and this is false, then make sure to set DISK to true. |
static FileSystem |
fileSystem
Access to the Nachos file system. |
private static boolean |
NETWORK
Are we going to be using the network? |
static NetworkDriver |
networkDriver
Access to the Nachos network. |
private static boolean |
THREADS
Are we going to be using the threads system? |
private static boolean |
USER_PROGRAM
Are we going to be running user programs? |
Constructor Summary | |
---|---|
Nachos()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] clArgs)
Bootstrap the operating system kernel. |
void |
run()
Nachos initialization -- performed by first Nachos thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String copyright
private static final boolean USER_PROGRAM
private static final boolean DISK
private static final boolean FILESYS
private static final boolean FILESYS_STUB
private static final boolean NETWORK
private static final boolean THREADS
private static java.lang.String[] args
public static FileSystem fileSystem
public static DiskDriver diskDriver
public static NetworkDriver networkDriver
Constructor Detail |
---|
public Nachos()
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public static void main(java.lang.String[] clArgs)
clArgs
- is the array of command line arguments.
The various arguments are described in the comments in
Nachos.java. Most of the arguments are interpreted by
the various subsystems, rather than here.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |