Advanced Operating Systems Lecture notes.ppt
《Advanced Operating Systems Lecture notes.ppt》由会员分享,可在线阅读,更多相关《Advanced Operating Systems Lecture notes.ppt(325页珍藏版)》请在麦多课文档分享上搜索。
1、Advanced Operating Systems Lecture notes,Dr. Clifford NeumanUniversity of Southern California Information Sciences Institute,CSci555: Advanced Operating Systems Lecture 1 August 26, 2011,Dr. Clifford NeumanUniversity of Southern California Information Sciences Institute,Administration,Instructors Dr
2、. Clifford Neuman csci555f11clifford.neuman.name Office hours SAL 212 Friday 12:55 PM 1:55 PM TA Nam Ma Namma at usc dot edu Office Hours TBD Class details http:/gost.isi.edu/555,Administration,Class Home Page http:/gost.isi.edu/555/ Announcements Syllabus Lecture Slides Reading listClass e-mail: cs
3、ci555usc.edu,Administrative Information,Reading list 65 papers and 20 book chapters Concentrated toward the first halfText Principles of Computer System Design By Saltzer and Kaashoek Also using second volume online,Administrative Information,Assignments 4 Reports, Due 11 p.m. Wednesday nights Resea
4、rch Paper Due: last class Exams Mid-Term: Friday, in October Final Exam: Friday, December 9,Administrative Information,DEN site - Blackboard Lecture webcast Class forum on DEN GradesLecture notes to be posted before lecture Academic Integrity READ IT It applies to you,Academic Integrity,I take Acade
5、mic Integrity Seriously Every year I have too many cases of cheating Last year I assigned multiple Fs for the class Occasionally students leave USC What is and is not OK I encourage you to work with others to learn the material Do not to turn in the work of others Do not give others your work to use
6、 as their own Do not plagiarize from others (published or not) Do not try to deceive the instructors See section on web site and assignments More guidelines on academic integrity Links to university resources Dont just assume you know what is acceptable.,Administration,Grading 20%: Reading Reports 2
7、0%: Midterm 20%: Final 30%: Research Paper 10%: Class Participation & Quizes Class forum participation In class participation,How to survive?,Read the survival guide How to read papers Read the papers in advance Be critical At least skim through Build your own notes Study group,What you should learn
8、 in this course,You will gain a basic understanding of distributed system concepts. You will develop intuition for which approaches work, and which dont. You will develop the ability to sense where bottlenecks lie in system design. You will remember where to look for more information when you are fa
9、ced with a distributed system problem. Above all, you will learn how to be critical of what you are told by system designers.,Some things an operating system does (review),Memory Management Scheduling / Resource management Communication Protection and Security File Management - I/O Naming Synchroniz
10、ation User Interface,Progression of Operating Systems,Primary goal of a distributed system: Sharing Progression over past years Dedicated machines Batch Processing Time Sharing Workstations and PCs Distributed Systems Devices,Structure of Distributed Systems,Kernel Basic functionality and protection
11、 Application Level Does the real work Servers Service and support functions needed by applications Many functions that used to be in Kernel are now in servers.,Structure of Distributed Systems,Network vs. OS Layering (No direct mapping, colors to stimulate discussion),Transport Layer,Physical,Link L
12、ayer,Network Layer,Application Layer,Presentation Layer,Session Layer,Characteristics of a Distributed System,Basic characteristics: Multiple Computers Interconnections Shared State,Why Distributed Systems are Hard,Scale: Numeric Geographic Administrative Loss of control over parts of the system Unr
13、eliability of Messages Parts of the system down or inaccessible Lamport: You know you have a distributed system when the crash of a computer you have never heard of stops you from getting any work done.,End-to-End Argument,QUESTION: Where to place distributed systems functions? Layered system design
14、: Different levels of abstraction for simplicity. Lower layer provides service to upper layer. Very well defined interfaces.,E2E Argument (continued),E2E paper argues that functions should be moved closer to the application that uses them.,E2E Argument (continued),Rationale: Some functions can only
15、be completely and correctly implemented with applications knowledge. Example: Reliable message delivery, security Encrypted e-mail Streaming media vs. Banking Applications that do not need certain functions should not have to pay for them.,E2E Counter-Argument,Performance Example: File transfer Reli
16、ability checks at lower layers detect problems earlier. Abort transfer and re-try without having to wait till whole file is transmitted. Abstraction Less repetition across apps Bottom line: “spread” functionality across layers.,Lecture Transition,This concludes the slides for lecture1. The following
17、 slides are for lecture 2.,CSci555: Advanced Operating Systems Lecture 2 September 2, 2011 Communication Models,Dr. Clifford NeumanUniversity of Southern California Information Sciences Institute,Outline: Communications Models,Communication Models: General concepts. Message passing. Distributed shar
18、ed memory (DSM). Remote procedure call (RPC) Birrel et al. Light-weight RPC Bershad et al. DSM case studies IVY Li et al. Linda Carriero et al.,COVERED LAST LECTURE,Communication Models,Support for processes to communicate among themselves. Traditional (centralized) OSs: Provide local (within single
19、 machine) communication support. Distributed OSs: must provide support for communication across machine boundaries. Over LAN or WAN.,COVERED LAST LECTURE,Communication Paradigms,2 paradigms Message Passing (MP) Distributed Shared Memory (DSM) Message Passing Processes communicate by sending messages
20、. Distributed Shared Memory Communication through a “virtual shared memory”.,COVERED LAST LECTURE,Message Passing,Basic communication primitives: Send message.Receive message.Modes of communication: Synchronous versus asynchronous. Semantics: Reliable versus unreliable.,.,Send,Sending Q,.,Receiving
21、Q,Receive,COVERED LAST LECTURE,Synchronous Communication,Blocking send Blocks until message is transmitted Blocks until message acknowledged Blocking receive Waits for message to be received Process synchronization.,COVERED LAST LECTURE,Asynchronous Communication,Non-blocking send: sending process c
22、ontinues as soon message is queued. Blocking or non-blocking receive: Blocking: Timeout. Threads. Non-blocking: proceeds while waiting for message. Message is queued upon arrival. Process needs to poll or be interrupted.,COVERED LAST LECTURE,Reliability of Communication,Unreliable communication: “be
23、st effort” - send and hope for the best No ACKs or retransmissions. Application must provide its own reliability. Example: User Datagram Protocol (UDP) Applications using UDP either dont need reliability or build their own (e.g., UNIX NFS and DNS (both UDP and TCP), some audio or video applications)
24、,COVERED LAST LECTURE,Reliability of Communication,Reliable communication: Different degrees of reliability. Processes have some guarantee that messages will be delivered. Example: Transmission Control Protocol (TCP) Reliability mechanisms: Positive acknowledgments (ACKs). Negative Acknowledgments (
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ADVANCEDOPERATINGSYSTEMSLECTURENOTESPPT
