140 likes | 417 Views
Project: Nachos. Tai-Yu Chiu 2008/10/06. Outline. Nachos Introduction The Nachos server How to use Nachos? Group for the projects Reference. Nachos Introduction. Nachos: Not Another Completely Heuristic Operating System. Developed by Tom Anderson and his students at UC Berkley.
E N D
Project: Nachos Tai-Yu Chiu 2008/10/06
Outline • Nachos Introduction • The Nachos server • How to use Nachos? • Group for the projects • Reference
Nachos Introduction • Nachos: Not Another Completely Heuristic Operating System. • Developed by Tom Anderson and his students at UC Berkley.
Why Nachos? • Real hardware is difficult to handle • Real kernel is too complicated to maintain • Nachos • Use a MIPS virtual machine • Provide some basic OS elements
The Nachos server • The server IP: 140.114.78.188 • SSH • Group ID/Password
How to install? • Copy files to your home directory • cp /tmp/nachos-4.0.tar ./ • Extract files • tar -xvf nachos-4.0.tar • Make files • cd nachos-4.0/code • make
How to execute? • There are several different directories in Nachos. You need to execute in different directories for different homework • cd userprog/ ./nachos • cd threads/ ./nachos
How to write? • In the server, you can use vim to edit the codes. • You also can download files by FTP and edit them with text editors like notepad++.
How to debug? • Use the debug options of Nachos • ./nachos –d + • Print all debug messages • In case the output is too many to fit the screen • ./nachos -d + 2>&1 > FileName
How to recompile? • If you want to recompile the whole programs completely • cd ~/nachos-4.0/code/ make clean make
Project 1: Multiprogramming • cd userprog/ ./nachos • Nachos execute two programs: ~nachos-4.0/code/test/test1.c and test2.c • For some reasons, execute the two programs concurrently will cause some errors.
Project 1: Multiprogramming • Please modify the kernel code such that nachos can execute the two programs correctly. • If you just modify files under the userprog directory, make files in userprog directory is okay. • cd nachos-4.0/code/userprog • make
Group for the projects • Two people each group. • Please email to TA for the group: tychiu@vc.cs.nthu.edu.tw Group members: your student ID, name.
Reference • Nachos, Nachos(wiki). • A road map through Nachos • A quick introduction to C++ • C++ Reference, C++ Gossip