200 likes | 206 Views
This course focuses on operating systems concepts with a special emphasis on shell programming. Learn how to accept, interpret, execute, and display results of commands in a shell program. Develop your own shell program and submit it for evaluation.
E N D
Operating Systems作業系統http://www.cs.ccu.edu.tw/~pahsiung/courses/os 熊博安 國立中正大學資訊工程學系 pahsiung@cs.ccu.edu.twClass: EA-101, EA001 (05)2720411 ext. 33119 Office: EA-512
Textbook • Operating System Concepts with Java, Silberschatz, Galvin, Gagne, 6th Edition, John Wiley & Sons, 2004, 新月代理 • Main Differences from 5th Edition • Pascal C and Java programs • NEW Chapter 5: Threads • NEW Chapter 21: Windows XP • NEW Chapter 22: Influential Operating Systems
Syllabus • Overview (Ch 1 3) • Process Management (Ch 4 8) • Storage Management (Ch 9, 10, 12) • I/O Systems (Ch 13) • Case Studies (Ch 20 22)(self study)
Grading Job Dates/Deadlines % • Homeworks One week 16% • Mid-Term Test 11/2, 11/3 30% • NACHOS Projects 11/1, 12/1, 01/2 24% • Final Exam 01/5, 01/6 30%
Rules • NO COPYING of homeworks or projects (a single case of copying BOTH parties will get ZERO point for ALL assignments) • NO CHEATING in exams (BOTH parties will get ZERO points for that exam)
Rules (cont’d) • Class Q&A: • Good question 2 Bonus Points • Correct answer 1 Bonus Point • Class Attendance: • On-the-fly roll-call • 2 or more times absent 期末學期成績不調分
Rules (cont’d) • Scores will be reduced by 80% per day for • late homeworks • late labs • Eg: If original score is 80, • 1 day late score = 80 * (0.8) = 64 • 2 days late score = 80 * (0.8)2 = 51.2
Homeworks (16%) • Homework assignments should be either hand written or computer typeset • Chapters: 4 ~ 10, 12 • Each chapter assignment = 2% score • Each person should hand in one set of answers within one week after announcement • Lack of submitting ANY ONE homework 期末學期成績不調分
Nachos Projects (24%) • Nachos Project Announcements: • Project 1: 9/29, 9/30 • Project 2: 10/27, 10/28 • Project 3: 11/29, 11/30
Nachos Projects (24%) • Nachos Project Work • Form a group of 3 students • Give a list of group members to TA (lsw92@cs.ccu.edu.tw) by 9/20. • Names in Chinese • Registration Number • Department and Class • ONE MONTH for finishing each project • Score is 8% for each project
Nachos Projects (24%) • Nachos Project Deadlines: • Project 1: 2004/11/1 • Project 2: 2004/12/1 • Project 3: 2005/01/2
Exams (30% + 30%) • All exams will be • Closed book • Written exam • 1.5 hour duration • No bonus question • Midterm: Chapters 1 ~ 7 • Final: Chapters 8 ~ 10, 12, 13
Operating Systems The best way to predict the future … is toI N V E N T IT!!! Alan Kay, inventor of SmallTalk, 2004 ACM Turing Award
Let’s start by inventing … • A SHELL just like • command.com in MSDOS, or • cmd in MS Windows, or • tcsh in Linux • This is a “qualification exam” for this course!!!
Shell • A shell program can • Accept commands • Interpret commands • Execute commands • Display results of execution
Shell • Programming Environment • OS: Linux • Compiler: gcc, g++, or any Java compiler • Required commands • help or h (shows a list of commands), • help <cmd> (shows detailed help on <cmd>), • quit, q, exit, e, • ! (escape character, e.g., !ls, i.e., escape to outer execution environment to execute “ls”)
Shell • Optional commands • 2 + 3, … like a calculator • run test1, test2, … a shell for your future projects • a text-based user interface for some kind of software tool • could be menu-driven
Shell • Form a group of 2 persons • Hand-in list by 9/20 • Deliverables • source code • documentation (code architecture, features, user guide, reference manual, etc.) • compiled executable (virus-checked) • if you submit a virus, you will get 0 points • Archive all the above into a zip file
Shell • Deadline • September 27 • E-mail zip file to lsw92@cs.ccu.edu.tw • Demo will be scheduled later by TA • Please go to http://embedded.cs.ccu.edu.tw/~yamami/os.html to get the latest information
Reference • Advanced Programming in the UNIX Environmentby W. Richard Stevens