Presentation is loading. Please wait.

Presentation is loading. Please wait.

Nachos Introduction CS342301 Operating System 2007.

Similar presentations


Presentation on theme: "Nachos Introduction CS342301 Operating System 2007."— Presentation transcript:

1 Nachos Introduction CS342301 Operating System 2007

2 What is Nachos? Nachos Not Another Completely Heuristic Operating System Developed by Tom Anderson and his students at UC Berkly http://www.cs.washington.edu/homes/tom /nachos/ http://www.cs.washington.edu/homes/tom /nachos/

3 What is Nachos Nachos An educational system used to teach kernel design and implementation Use a MIPS virtual machine Provide some basic OS elements

4 Connect to Nachos Use putty to connect the Nachos server http://the.earth.li/~sgtatham/putty/latest/x 86/putty.exe IP : 140.114.78.18 SSH Id / password (cs342301)

5 How to install Nachos Copy files to your home directory cp /tmp/nachos_4.0.tar.gz./ Extract files tar -zxvf nachos_4.0.tar.gz Change directory cd nachos-4.0/code Make files make

6 How to execute Nachos There are several different directories in Nachos. You need to execute in different directories for different homework cd threads/./nachos cd userprog/./nachos

7 How to write your programs Coding directly on the course machine vi joe Coding directly in Windows environment Use ftp to download/upload your files Ultraedit / VC++

8 How to debug your programs Use the debug option of Nachos./nachos – d + In case the output is too many to fit the screen./nachos -d + 2>&1 > log

9 How to recompile your programs If you want to recompile the whole programs completely cd nachos-4.0/code make clean make

10 Project 1 Multiprogramming Please execute the nachos under ~/nachos- 4.0/code/userprog directory (cd nachos-4.0/code/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. 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

11 Something you need to know Don ’ t modify the files under “ machine ” directory. Please keep a copy of your code in your own PC. Course machine is for coding and testing. We don ’ t guarantee the safety of your codes.


Download ppt "Nachos Introduction CS342301 Operating System 2007."

Similar presentations


Ads by Google