Operating Systems Design CS 423 Elsa L Gunter

  • Slides: 19
Download presentation
Operating Systems Design (CS 423) Elsa L Gunter 2112 SC, UIUC http: //www. cs.

Operating Systems Design (CS 423) Elsa L Gunter 2112 SC, UIUC http: //www. cs. illinois. edu/class/cs 423/ Based on slides by Sam King and Andrew S Tanenbaum 3/5/2021 1

Contact Information - Elsa L Gunter n n Office: 2112 SC Office hours: n

Contact Information - Elsa L Gunter n n Office: 2112 SC Office hours: n n Mondays, Wednesdays 11: 00 am - 12: 00 pm, Fridays 9: 00 am – 9: 50 am May change if these prove inopportune Also by appointment Email: egunter@illinois. edu 3/5/2021 2

Contact Information - TAs n n Teaching Assistants Office: 0207 SC Nipun Sehrawat n

Contact Information - TAs n n Teaching Assistants Office: 0207 SC Nipun Sehrawat n n Email: sehrawa 2@illinois. edu Hours: Not yet set 3/5/2021 3

Course Website n n n n Main page - summary of news items Policy

Course Website n n n n Main page - summary of news items Policy - rules governing course Lectures - syllabus and slides MPs - information about homework Exams Unit Projects - for 4 credit students Resources - tools and helpful info FAQ 3/5/2021 4

Some Course References n No required textbook. n Modern Operating Systems (third edition), by

Some Course References n No required textbook. n Modern Operating Systems (third edition), by n n Andrew S Tanenbaum, published by Peason/Prentice Hall Virtual Machines – Versatile Platforms for Systems and Processes, by James E. Smith and Ravi Nair, published by Elsevier/Morgan Kaufmann (Optional) Understanding the Linux Kernel, by Daniel P. Bovet and Maroc Cesati, published by O’Reily 3/5/2021 5

Course Grading - MPs n Homework 20% n n n Traditionally 4 MPs. n

Course Grading - MPs n Homework 20% n n n Traditionally 4 MPs. n More hard than long n I will try to break them up into more smaller ones. MPs submitted by handin on EWS linux machines Late submission penalty: 20% of assignments total value 3/5/2021 6

Course Grading - Exams n 2 Midterms - 20% each n n DO NOT

Course Grading - Exams n 2 Midterms - 20% each n n DO NOT MISS EXAM DATES! Final 40% - May 6, 8: 00 am – 11: 00 am Percentages are approximate n n n In class – Mar 2, Apr 18 Exams may weigh more if homework is much better No extra credit If final is better than average of other scores, drop lowest score, make final 60% 3/5/2021 7

Default Course Grade Scale A+ ≥ 97 A ≥ 93 A≥ 90 B+ ≥

Default Course Grade Scale A+ ≥ 97 A ≥ 93 A≥ 90 B+ ≥ 87 B ≥ 83 B≥ 80 C+ C CD F ≥ ≥ < 77 73 70 60 60 May curve if scores differ much from previous semesters 3/5/2021 8

Course Homework n n n You may discuss homeworks and their solutions with others

Course Homework n n n You may discuss homeworks and their solutions with others You may work in groups, but you must list members with whom you worked if you share solutions or solution outlines Each student must turn in their own solution separately Readhttp: //www. cs. uiuc. edu/class/sp 11/cs 423/policy. html# collaboration for full statement You may look at examples from class and other similar examples from any source n Note: University policy on plagiarism still holds - cite your sources if you are not the sole author of your solution Problems from homework may appear verbatim, or with some modification on exams 3/5/2021 9

Prerequisites n n n CS 241 or ECE 391–Important You must be comfortable with

Prerequisites n n n CS 241 or ECE 391–Important You must be comfortable with C/C++ You must know basics about systems n n E. g. , you should know what a file descriptor is Will give a brief review next class 3/5/2021 10

Facilites n Lab: EWS Machines n n Virtual Machine Emulator n n n ssh

Facilites n Lab: EWS Machines n n Virtual Machine Emulator n n n ssh –Y <netid>@remlnx. ews. illininois. edu Qemu: http: //wiki. qemu. org/Main_Page Executable available from ~cs 423/bin Will use Linux Kernel 2. 6. 37 n http: //www. kernel. org/ 3/5/2021 11

Course Objectives n Understanding Major Concepts of Operating Systems n n n n Threads

Course Objectives n Understanding Major Concepts of Operating Systems n n n n Threads and synchronization Virtualization and Virtual Machine Monitors I/O and Device Drivers File Systems Distributed Systems Security Understanding of Interaction Between Hardware and Kernel Understanding of the Layers of Abstraction and Virtualization of Operating Systems 3/5/2021 12

What is an Operating System? n Most basically, what is an operating system are

What is an Operating System? n Most basically, what is an operating system are the main things it does? 3/5/2021 13

What is an Operating System? n Software layer between hardware and application software Application

What is an Operating System? n Software layer between hardware and application software Application Software Virtual interface Operating System Physical interface Hardware 3/5/2021 14

What Does an Operating System Do? n Abstraction n n Presents application with uniform,

What Does an Operating System Do? n Abstraction n n Presents application with uniform, (relatively) simple access to resources Regulation n Governs access to resources to guarantee proper use 3/5/2021 15

What Does an Operating System Do? n In any OS area, ask: n n

What Does an Operating System Do? n In any OS area, ask: n n What 3/5/2021 resource(s) is involved? is physical reality of resource? abstraction to present to user apps? protections to guarantee? 16

Dual Relationship Between OS and Apps n n User app main program; calls kernel

Dual Relationship Between OS and Apps n n User app main program; calls kernel for services OS main program; calls user programs as subroutines 3/5/2021 17

Main Roles of OS n Illiusionist n Make resources seem better than they are

Main Roles of OS n Illiusionist n Make resources seem better than they are n n Examples? Government n Parcel out shared resources to multiple apps in a fair, safe, efficient way n n Tax: Costs CPU, Memory, Maintains Protections n Allows good programs to just mind their own business 3/5/2021 18

Why Study Operating Systems? n n Some day, you may write one (or part

Why Study Operating Systems? n n Some day, you may write one (or part of one) OS concepts ant techniques common in other domains n n OS is huge multi-threaded, event drive app Designing and implementing abstractions and protections Caching, indirection, concurrency, atomicity, … Fun to “open the hood and look inside” 3/5/2021 19