tac0S
Template Affectional Command Operating System
|
Bootstrap code to initialize the operating system kernel. More...
Functions | |
void | ThreadTest (void) |
void | Copy (const char *unixFile, const char *nachosFile) |
Copy Copy the contents of the UNIX file "from" to the Nachos file "to". | |
void | Print (char *file) |
void | PerformanceTest (void) |
void | StartProcess (char *file) |
void | ConsoleTest (char *in, char *out) |
void | MailTest (int networkID) |
Test out message delivery, by doing the following: More... | |
void | SynchConsoleTest (char *readFile, char *writeFile) |
int | testList () |
testList More... | |
int | testUTMmono () |
testUTMmono test the UserThreamManager in monothreading More... | |
int | main (int argc, char **argv) |
main Bootstrap the operating system kernel. More... | |
Bootstrap code to initialize the operating system kernel.
Usage: nachos -d <debugflags> -rs <random seed #> -s -x <nachos file>=""> -c <consoleIn> <consoleOut> -f -cp <unix file>=""> <nachos file>=""> -p <nachos file>=""> -r <nachos file>=""> -l -D -t -n <network reliability>=""> -m <machine id>=""> -o <other machine="" id>=""> -z
-d causes certain debugging messages to be printed (cf. utility.h) -rs causes Yield to occur at random (but repeatable) spots -z prints the copyright message
USER_PROGRAM -s causes user programs to be executed in single-step mode -x runs a user program -c tests the console
FILESYS -f causes the physical disk to be formatted -cp copies a file from UNIX to Nachos -p prints a Nachos file to stdout -r removes a Nachos file from the file system -l lists the contents of the Nachos directory -D prints the contents of the entire file system -t tests the performance of the Nachos file system
NETWORK -n sets the network reliability -m sets this machine's host id (needed for the network) -o runs a simple test of the Nachos network software
NOTE – flags are ignored until the relevant assignment. Some of the flags are interpreted here; some in system.cc.
Copyright (c) 1992-1993 The Regents of the University of California. All rights reserved. See copyright.h for copyright notice and limitation of liability and disclaimer of warranty provisions.
void MailTest | ( | int | farAddr | ) |
Test out message delivery, by doing the following:
int main | ( | int | argc, |
char ** | argv | ||
) |
main Bootstrap the operating system kernel.
Check command line arguments Initialize data structures (optionally) Call test procedure
argc | is the number of command line arguments (including the name of the command) – ex: "nachos -d +" -> argc = 3 |
argv | is an array of strings, one for each command line argument ex: "nachos -d +" -> argv = {"nachos", "-d", "+"} |
int testList | ( | void | ) |
testList
int testUTMmono | ( | ) |
testUTMmono test the UserThreamManager in monothreading