CS162
CS162 copied to clipboard
Study notes for online course UCB CS162
hello i'm a new to OS. I have been given a task of creating and executing new system call for Nachos OS on windows. I was able to compile user...
``` Java /* TestID 3: Test ThreadGrader7 (no ticket transfers (priority donation)) */ public static void LotterySchedulerVAR4() { /*@B4A*/ System.out.print("++MyTester: enter LotterySchedulerVAR4\n"); /*@B4A*/ PriopritySchedulerVAR1(); /*@B4A*/ PriopritySchedulerVAR2(); /*@B4A*/ PriopritySchedulerVAR3(); /*@B4A*/ PriopritySchedulerVAR4();...
userproc/UserProcess.java: UserProcess.handleExcetion: ``` default: Lib.debug(dbgProcess, "Unexpected exception: " + Processor.exceptionNames[cause]); /* Fix defect by isprmgr, Var7 */ handleExit(-1); /*@BCA*/ Lib.assertNotReached("Unexpected exception"); ``` Is it reasonable to invoke 'handleExit' for unhandled...
Not sure for that. Should figure out the life cycle of user program then handle this problem.