Presentation is loading. Please wait.

Presentation is loading. Please wait.

1. Introduction to Nachos Shandong University 2014 秋.

Similar presentations


Presentation on theme: "1. Introduction to Nachos Shandong University 2014 秋."— Presentation transcript:

1 1. Introduction to Nachos Shandong University 2014 秋

2 to get your hands dirty Read and analyze Build observe

3 The only way to teach operating systems concepts and their design and implementation effectively is to have students read and experiment with an operating system at the source code level.

4 Nachos The Nachos operating system is a small working operating system on MIPS architecture written by Prof. Tom Anderson from the University of California at Berkeley and used widely for teaching operating systems throughout the world The only difference between Nachos and a ``real'' operating system is that Nachos runs as a single Unix process, whereas real operating systems run on bare machines.

5 History of Nachos The Nachos instructional operating system, developed at Berkeley in 1992 It was first tested on guinea pig students To be a simple, yet realistic project for OS Nachos is now in wide use

6 History of Nachos The original Nachos, written in C++ It simulated the hardware devices –a timer, a console, a MIPS R3000, processor, a disk, and a network link To achieve reasonable performance –The kernel ran natively –User processes ran on the simulated processor

7 Why Java? Java is much simpler than C++ –It is not necessary to restrict Nachos to a subset of the language; –students can understand the whole language. Java is type-safe. C++ is not type-safe –Some project groups are unable to debug their projects within the alotted time, primarily because of bugs not at all related to operating systems concepts It is much more reasonable to machine-grade a Java project Many undergraduate data structures classes, not C++ –students know Java well Java is relatively portable

8 伯克利分校 nachos 课程设计网址 –http://www-inst.eecs.berkeley.edu/~cs162/sp14/

9 Eclipse Guid for Nachos Create a new empty directory (e.g. cs162) Unpack nachos in this directory, so that you have cs162/nachos Open Eclipse File > New > Java Project Project name: nachos Uncheck "Use default location" Click Browse and select directory 'cs162' and click Open Click Finish Run > Run Configurations... Double click Java Application For Main class, select Machine - nachos.machine On Arguments tab, click Other, then Workspace, then navigate to proj1 directory Click Run


Download ppt "1. Introduction to Nachos Shandong University 2014 秋."

Similar presentations


Ads by Google