Lec2_arch

Lec2_arch - 1 CSE120 Principles of Operating Systems...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 CSE120 Principles of Operating Systems Yuanyuan (YY) Zhou Lecture 2 Mar 30, 2011 3/29/2011 CSE 120 Lecture 2 Architectural Support for OSes 2 Content of this lecture Announcements and reminders Hardware overview A peek at Unix 3/29/2011 CSE 120 Lecture 2 Architectural Support for OSes 3 Announcement Have you visited the web page? http://cseweb.ucsd.edu/classes/sp11/cse120/ Project 0 (installation & Submission) out today Done individually Due Wednesday 4/6, 11:59pm Project groups When you have chosen groups, send your group info to Matt 3/29/2011 CSE 120 Lecture 2 Architectural Support for OSes 4 Why Start With Hardware? Operating system functionality depends upon hardware Key goals of an OS are to enforce protection and resource sharing If done well, applications can be oblivious to HW details Hardware support can greatly simplify or complicate OS tasks Early PC operating systems (DOS, MacOS) lacked virtual memory in part because hardware did not support it 2 So what is inside a computer? http://www.youtube.com/watch?v=FwtF7tz2p-s&feature=related An abstract overview http://www.youtube.com/watch?v=Q2hmuqS8bw M&feature=related An introduction with a real computer http://www.youtube.com/watch?v=VWzX4MEYOB k 3/29/2011 CSE 120 Lecture 2 Architectural Support for OSes 5 3/29/2011 CSE 120 Lecture 2 Architectural Support for OSes 6 A Typical Computer from a Hardware Point of View CPU Chipset Memory I/O bus CPU . . . Network ??? bus 3/29/2011 CSE 120 Lecture 2 Architectural Support for OSes 7 Pentium System: can you read it? Structure of a large Pentium system 3/29/2011 CSE 120 Lecture 2 Architectural Support for OSes 8 A Typical Computer System (black box) Operating System Software Programs and data Memory CPU CPU . . . OS Apps Data Network 3 3/29/2011 CSE 120 Lecture 2 Architectural Support for OSes 9 Memory-Storage Hierarchy Typical Capacity 1K-16KB 2-64MB 1-32GB 64GB-1TB 1TB-4TB 3/29/2011 CSE 120 Lecture 2 Architectural Support for OSes 10 A peek into Unix/Linux Application Portable OS Layer Libraries Machine-dependent layer User space/level Kernel space/level User/kernel modes are supported by hardware Some systems do not have clear user-kernel boundary 3/29/2011 CSE 120 Lecture 2 Architectural Support for OSes 11 Unix: Application Application (E.g., emacs) Portable OS Layer Libraries Machine-dependent layer Written by programmer Compiled by programmer Uses function calls 3/29/2011 CSE 120 Lecture 2 Architectural Support for OSes 12 Unix: Libraries Application Portable OS Layer Libraries (e.g., stdio.h) Machine-dependent layer Written by elves Provided pre-compiled Defined in headers Input to linker (compiler) Invoked like functions May be resolved when program is loaded 4 3/29/2011 CSE 120 Lecture 2 Architectural Support for OSes 13 Typical Unix OS Structure...
View Full Document

This note was uploaded on 02/26/2012 for the course CSE 120 taught by Professor Staff during the Spring '08 term at UCSD.

Page1 / 10

Lec2_arch - 1 CSE120 Principles of Operating Systems...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online