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 Sept 28, 2010 9/27/2010 CSE 120 – Lecture 2 – Architectural Support for OSes 2 Content of this lecture Announcements and reminders Hardware overview A peek at Unix 9/27/2010 CSE 120 – Lecture 2 – Architectural Support for OSes 3 Announcement Have you visited the web page? Nacho tutorial and project overview: next lecture (Apr 6 th ) Project 0 (installation & Submission) out today – Done individually – Due on Oct 5th Project groups – When you have chosen groups, send your group info to Matt 9/27/2010 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 9/27/2010 CSE 120 – Lecture 2 – Architectural Support for OSes 5 9/27/2010 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 9/27/2010 CSE 120 – Lecture 2 – Architectural Support for OSes 7 Pentium System: can you read it? Structure of a large Pentium system 9/27/2010 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 9/27/2010 CSE 120 – Lecture 2 – Architectural Support for OSes 9 Memory-Storage Hierarchy Real life analogy? Typical Capacity 1K-16KB 2-64MB 1-32GB 64GB-1TB 1TB-4TB 9/27/2010 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 9/27/2010 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 9/27/2010 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 9/27/2010 CSE 120 – Lecture 2 – Architectural Support for OSes...
View Full Document

This note was uploaded on 12/09/2010 for the course CSE CSE 120 taught by Professor Yuanyuanzhou during the Spring '10 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