1 / 14

Project: Nachos

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.

ingrid
Download Presentation

Project: Nachos

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Project: Nachos Tai-Yu Chiu 2008/10/06

  2. Outline • Nachos Introduction • The Nachos server • How to use Nachos? • Group for the projects • Reference

  3. Nachos Introduction • Nachos: Not Another Completely Heuristic Operating System. • Developed by Tom Anderson and his students at UC Berkley.

  4. 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

  5. The Nachos server • The server IP: 140.114.78.188 • SSH • Group ID/Password

  6. 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

  7. 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

  8. 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++.

  9. 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

  10. How to recompile? • If you want to recompile the whole programs completely • cd ~/nachos-4.0/code/ make clean make

  11. 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.

  12. 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

  13. 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.

  14. Reference • Nachos, Nachos(wiki). • A road map through Nachos • A quick introduction to C++ • C++ Reference, C++ Gossip

More Related