The main.cc program of Nachos in ../threads/ calls function ThreadTest() as follows: void ThreadTest() { DEBUG(’t’, "Entering SimpleTest"); Thread *t = new Thread("forked thread"); t->Fork(SimpleThread, 1); SimpleThread(0); } The SimpleThread() function used above is as follows: void SimpleThread(_i