-
Notifications
You must be signed in to change notification settings - Fork 0
Home
WU Yijie edited this page Dec 14, 2017
·
12 revisions
Welcome to the OSProject wiki!
- Eclipse run configuration:
- set main class to
nacho.machine.Machine. - set program arguments
-d tto print thread debug information.
- set main class to
* Nachos code: 1. ThreadedKernel.initialize() creates new KThread (_main_ #0), and the first KThread will fork an idle KThread (_idle_ #1) that runs when other threads all blocked. 2. In KThread.fork(), if the interrupt has already been disabled(e.g., when _idle_ forks), then it will still be disabled after restore(). 3. Before calling `sleep()`, the interrupt should be disabled. And the method `begin()` (called in `runThread()`) will restore the interrupt.
- Eclipse run configuration:
- set program arguments
-d mato print debug info, and-x [program].coffto excecute a specified user program.
- set program arguments
- Nachos code:
- The interface
FileSystemis implemented innachos.machine.StubFileSystem.
- The interface