Nachos Overview 2011 级 OS 课程设计 2013 秋. to get your hands dirty Read and analyze Build observe.

Slides:



Advertisements
Similar presentations
Operating Systems Components of OS
Advertisements

OS Components and Structure
Slide 1Michael Flynn EE382 Winter/99 EE382 Processor Design Stanford University Winter Quarter Instructor: Michael Flynn Teaching Assistant:
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Chapter 3 Memory Management. 3.1 From Programs To Address Space 3 steps to run the programs of an application – A Compiler translates the source code.
Introduction CSCI 444/544 Operating Systems Fall 2008.
Introduction to Operating Systems CS-2301 B-term Introduction to Operating Systems CS-2301, System Programming for Non-majors (Slides include materials.
Enrique Blanco García © 2004 Introduction to the UNIX environment Enrique Blanco Cover from the book Modern operating systems. A. Tanenbaum.
Operating System Tracing the Nachos code in Java Instructor: Dr. Lee, Hahn-Ming. ( 李漢銘 教授 ) TA (Reporter): Mao, Ching-Hao 毛敬豪 Chen, Wei-Da 陳威達 2006/3/14.
Operating System Tracing the nachos code in Java
Systems Programming Course Gustavo Rodriguez-Rivera.
Mehmet Can Vuran, Instructor University of Nebraska-Lincoln Acknowledgement: Overheads adapted from those provided by the authors of the textbook.
Build an Operating System
Nachos Introduction CS Operating System 2005.
Copyright Arshi Khan1 System Programming Instructor Arshi Khan.
 Introduction Introduction  Definition of Operating System Definition of Operating System  Abstract View of OperatingSystem Abstract View of OperatingSystem.
Welcome to the World of Nachos CPS 110 Spring 2004 Discussion Session 1.
1 Nachos Introduction Lecturer: Tei-Wei Kuo TA: Ya-Su Chen, Yuan-Hao chang Date: 2005/10/19.
Winter 2015 COMP 2130 Introduction to Computer Systems Computing Science Thompson Rivers University Introduction and Overview.
CS240 Computer Science II Introduction to Unix Based on “UNIX for Programmers and Users” by G.Class and K. Ables.
 What is an operating system? What is an operating system?  Where does the OS fit in? Where does the OS fit in?  Services provided by an OS Services.
Chapter 6 Operating System Support. This chapter describes how middleware is supported by the operating system facilities at the nodes of a distributed.
CHAPTER FOUR COMPUTER SOFTWARE.
ICOM Noack Operating Systems - Administrivia Prontuario - Please time-share and ask questions Info is in my homepage amadeus/~noack/ Make bookmark.
Introduction to Interactive Media Interactive Media Tools: Software.
What is a Computer? An, electrical machine, that can be programmed to accept data (input), process it into useful information (output) and store it away.
Nachos Projects Overview and Project 1 TA : 吳哲榮 2010/10/21.
Nachos Projects Overview and Project 1 TA : 王映智 2007/10/24.
BLU-ICE and the Distributed Control System Constraints for Software Development Strategies Timothy M. McPhillips Stanford Synchrotron Radiation Laboratory.
Introduction and Overview Summer 2014 COMP 2130 Introduction to Computer Systems Computing Science Thompson Rivers University.
Copyright © George Coulouris, Jean Dollimore, Tim Kindberg This material is made available for private study and for direct.
Operating Systems Lecture 7 OS Potpourri Adapted from Operating Systems Lecture Notes, Copyright 1997 Martin C. Rinard. Zhiqing Liu School of Software.
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
Robert Crawford, MBA West Middle School.  Explain how the binary system is used by computers.  Describe how software is written and translated  Summarize.
Chapter 1 Computer Systems. Why study Computer Architecture? Examples Web Browsing - how does the browser access pages from a server? How can we create.
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
Nachos Tutorial Courtesy: University of Waterloo.
 Virtual machine systems: simulators for multiple copies of a machine on itself.  Virtual machine (VM): the simulated machine.  Virtual machine monitor.
Nachos Instructional OS CS 270, Tao Yang, Spring 2011.
Nachos Tutorial 马 融 03-ACM Honor Class Dept. of Computer Science and Engineering Shanghai Jiao Tong University 2007 / 11.
C o n f i d e n t i a l 1 Course: BCA Semester: III Subject Code : BC 0042 Subject Name: Operating Systems Unit number : 1 Unit Title: Overview of Operating.
1 Operating Systems: Principles and Practice Cpr E 308.
UNIX and Shell Programming
1. Introduction to Nachos Shandong University 2014 秋.
Nachos Project Assignment 1 Multi-programming TA: Hung-Leng Chen.
Overview of Operating Systems Introduction to Operating Systems: Module 0.
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
Nachos Overview Lecturer: Hao-Hua Chu TA: Chun-Po Wang (Artoo) Date: 2008/09/18 Material Provided by Yuan-Hao Chang, Yung-Feng Lu.
Nachos Lecture 2 Xiaorui Sun. Phase 2 You have got one machine (machine package) You have to implements the incomplete OS (userprog package) Run programs.
 Programming - the process of creating computer programs.
1/31/20161 Final Exam Dec 10. Monday. 4-7pm. Phelp 1160 Similar to midterm The exam is closed book. You can bring 2 page of notes (double sided) Nachos.
1 Lecture 6 “Nachos” n nachos overview n directory structure n nachos emulated machine n nachos OS n nachos scheduler n nachos threads.
2.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition System Programs (p73) System programs provide a convenient environment.
Damian Gordon.  This module will serve as an introduction to Operating Systems.  It provides an overview of the major components of a computer system.
Overview of Windows Driver Development Reference: us/gstart/hh/gstart/gs_intro_031j.asp.
Introduction and Overview Winter 2013 COMP 2130 Introduction to Computer Systems Computing Science Thompson Rivers University.
Computer Architecture Organization and Architecture
Introduction to Operating Systems Concepts
Bare metal OS project CSSE 332 Operating Systems
System Programming and administration
CASE STUDY 1: Linux and Android
Introduction to Operating System (OS)
Computer Science I CSC 135.
Tornado Training Workshop
Operating Systems Lecture 1.
OS Components and Structure
Tornado Training Workshop
Operating System Concepts
Operating System Concepts
Presentation transcript:

Nachos Overview 2011 级 OS 课程设计 2013 秋

to get your hands dirty Read and analyze Build observe

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.

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.

How to study Our goal is to give you guidance not only to study the concepts in the text, but also to read and understand the source code of the Nachos operating system we use the Nachos source code to illustrate the concepts. This is probably the only way to enable you to have a sound grasp of the concepts described in the text.

How to study the first round of reading. As a matter of fact, you will need to go back and forth between the text and the relevant Nachos source code many times before you can really grasp the concepts in this module Understanding and experimenting

Contents Introduction Installation Nachos directory structure

1. Introduction Nachos has an excellent balance between simplicity and realism – Nachos is a UNIX process – Nachos was originally developed for use on DEC MIPS systems (DEC was acquired by Compaq years ago, which was acquired in turn by HP recently) and user programs are in binary format, making Nachos real enough avoiding the sense of a toy. side- by- side – The program nachos implements both the machine simulation and the operating system

1.1 The architecture of Nachos

1.2 MIPS simulator Timer Disk Network Console – a display and a keyboard MIPS instruction processor

1.3 MIPS/intel user- level code – Run at MIPS – gcc cross- compile Nachos – Run at intel

2 Installation 2.1 Cross compiler 2.2 Nachos

3. Nachos directory structure code – contains all source code and configuration files for Nachos – bin. COFF for unix; NOFF for Nachos – machine The machine simulation – threads Thread support main() routine of the nachos program, in main.cc the best place to start reading the Nachos code

3. Nachos directory structure cont. code – userprog the creation of address spaces loading of user (test) programs, and execution of test programs on the simulated machine – filesys The ”real” file system uses A“stub” file system – Network support for networking – test User test programs to run on the simulated machine

4 Assumption of UNIX skills basic UNIX commands and file systems make utility and Makefiles gdb debugger tool

5. What This Course Is About It concentrates on the concepts and techniques in design and implementation of operating systems This course covers the design and implementa- tion of three principle components of operating systems – Process Management – Memory Management – File Systems Management

6. Teaching Material Textbook – Operating System Concepts" Nachos Source Code – about 9,500 lines of C++ code with extensive comments Study book

Laboratoris Laboratory 1: Installation of Nachos System Laboratory 2: Makefiles of Nachos Laboratory 3: Synchronization Using Semaphores Laboratory 4:Nachos File system Laboratory 5: Extendable Files Laboratory 6: User Programs and System Calls Laboratory 7: Extension of AddrSpace Laboratory 8: System Calls Exec() and Exit()

Assignments Assignment 1: Overview and process Assignment 2: Synchronization and monitors Assignment 3: File System Interface and Implementation

教学资料下载