17 Pages

part2

Course: CS 354, Spring 2012
School: Purdue
Rating:
 
 
 
 
 

Word Count: 609

Document Preview

Operating CS354: Systems Spring 2012 Dongyan Xu Department of Computer Science Purdue University 1 Acknowledgement The following people for sharing their slides: Prof. Peter Chen (U. Michigan) Prof. Sam King (UIUC) Prof. Klara Nahrstedt (UIUC) Prof. Gustavo Rodriguez-Rivera (Purdue) 2 A Typical Computer from a Hardware Point of View CPU ... CPU Memory Chipset I/O bus Network 3 CPU North Bridge chip...

Register Now

Unformatted Document Excerpt

Coursehero >> Indiana >> Purdue >> CS 354

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Operating CS354: Systems Spring 2012 Dongyan Xu Department of Computer Science Purdue University 1 Acknowledgement The following people for sharing their slides: Prof. Peter Chen (U. Michigan) Prof. Sam King (UIUC) Prof. Klara Nahrstedt (UIUC) Prof. Gustavo Rodriguez-Rivera (Purdue) 2 A Typical Computer from a Hardware Point of View CPU ... CPU Memory Chipset I/O bus Network 3 CPU North Bridge chip PCI bus South Bridge chip AGP port Video card Memory PCI slots Modem Sound card IDE controller Hard disks CDROM Serial, parallel and USB ports 4 Typical Computer System Memory Programs and data Operating System Software CPU . . . CPU OS Apps Data Network 5 Processors Each CPU has a specific set of instructions All CPUs contain General registers inside to hold key variables and temporary results Special registers visible to the programmer Program counter contains the memory address of the next instruction to be fetched Stack pointer points to the top of the current stack in memory Control registers (e.g., CR0-CR4 in x86) PSW (Program Status Word) contains the condition code bits which are set by comparison instructions, the CPU priority, the mode (user or kernel) and various other control bits. 6 How Processors Work Execute instructions CPU cycles Fetch (from mem) decode execute Program counter (PC) When is PC changed? Pipeline: fetch n+2 while decode n+1 while execute n Two modes of CPU (why?) User mode (a subset of instructions) Privileged mode (all instruction) Trap (special instruction) 7 Memory Access Memory read: Assert address on address lines Wait till data appear on data line Much slower than CPU! How many mem access for one instruction? Fetch instruction Fetch operand (0, 1 or 2) Write results (0 or 1) How to speed up instruction execution? 8 CPU Cache Cache hit: no need to access memory Cache miss: data obtained from mem, possibly update cache 9 Memory-Storage Hierarchy < - 4MB -1GB -TB -TB 10 Memory Registers internal to CPU (as fast as CPU) 32x32 Storage bits on a 32-bit CPU, 64x64 on 64 bit CPU (less than 1KB in both cases) Cache memory controlled by hardware Cache hit and miss RAM (Random Access Memory) Disk (magnetic disk), CD-ROM, DVD,... Cylinder, track, ... Non-volatile Memory ROM (Read Only Memory) Programmed at the factory and can't be changed EEPROM (Electrically Erasable ROM) Flash RAM Can be erased and re-written Volatile Memory CMOS holds current time and date 11 Memory Management How to protect programs from each other? How to handle relocation ? Base register Limit register Check and Mapping of Addresses Virtual Address - Physical Address Memory Management Unit (MMU located on CPU chip or close to it Performance effects on memory system Cache Context switch 12 I/O Devices Controller Example: Disk Controller Controllers are complex converting OS request into device parameters Controllers often contain small embedded computers Device Fairly simple interfaces and standardized IDE (Integrated Drive Electronics) standard disk type on Pentiums and other computers 13 I/O Devices Device Driver Needed since each type of controller may be different. Software that talks to a controller, giving it comments and accepting responses Each controller manufacturer supplies a driver for each OS it supports (e.g., drivers for Windows XP, Longhorn, UNIX) 14 Methods for I/O How device driver talks to controller Busy wait Interrupt DMA 15 Bus Pentium systems have eight buses Cache, local, memory, PCI, SCSI, USB, IDE, ISA PCI (Peripheral Component Interconnect) bus is successor to IBM PC ISA bus Intel bus, 528MB/sec ISA (Industry Standard Architecture) bus 16.67 MB/sec Specialized buses: SCSI (Small Computer System Interface) 160MB/sec for disks, scanners (popular on Macintosh, UNIX) USB (Universal Serial Bus) 1.5 MB/sec IEEE 1394 FireWire (Apple) bus 50MB/sec, connectivity for cameras to computer IDE (Integrated Drive Electronics) bus Disk, CD-ROM 16 Structure of an Intel Pentium System 17
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Purdue - CS - 354
CS354: Operating SystemsSpring 2012 Part 3: Program StructureDongyan XuDepartment of Computer Science Purdue University1Virtual Address Space of a ProgramA program sees (virtual) memory as an array of bytes that goes from address 0 to 232-1 (0 to 4G
Purdue - CS - 354
CS354: Operating SystemsSpring 2012Part 4: OS InterfaceDongyan XuDepartment of Computer Science Purdue University1Kernel and User Mode Kernel Mode When the CPU runs in this mode: It can execute any machine instruction Examples of privilege instr
Purdue - ENG - 106
Fallacies of ArgumentFallacies are arguments that are flawed by their very nature or structure. They instantly call into question the ethics of argumentation; is the argument fair, accurate, or principled? Fallacies are argumentative strategies that hurt
Purdue - ENG - 106
English 106 Camarota Response to &quot;Darkon&quot; documentary Ah, the fierce and magical world of Darkon! Here we saw the mighty Bannor of Laconia fall to the all-powerful Keldar of Mordom after failing to capture the Citadel of Peace. We saw a game, a fantasy wo
Purdue - ENG - 106
Ankita Jain Alex Camarota English 106 21st February 2011 Darkon review The movie Darkon shows the war gaming adventures of ordinary folks in Baltimore,Maryland. Its like a fantasy world that they have formed there with their own set of predefined rules. T
Purdue - ENG - 106
English 106 Camarota Major Writing Assignment #3: Purdue Problems For your final paper, you will put into practice all the rhetorical strategies we have studied up to this point in the semester and write your own convincing, persuasive argument. Specifica
Purdue - ENG - 106
Purdue Problems Worksheet: In groups, discuss different problems and unfavorable situations that you feel exist at Purdue. These can be seemingly &quot;low-level&quot; problems such as a poor bus and transportation system, to more controversial and &quot;highlevel&quot; prob
Purdue - ENG - 106
Major Essay Assignment #2 In this unit, we will look at different subcultures in our society. A subculture is a group of people that are distinct in some way from the larger American culture to which we all belong. Subcultures can form because of religion
Purdue - ENG - 106
Writer 1 Imma Writer Instructor Camarota English 106 9 February 2011 A Slick Title for a Rhetorical Analysis Essay In &quot;We Are Free to Be You, Me, Stupid, and Dead,&quot; Roger Rosenblatt creates a very effective argument in favor of free speech. With a catchy
Purdue - ENG - 106
Chapter One Structural/ Functionalism TheoryRalph and Alice have been married for about 20years. Ralph feels that they have a good thing going. He works in construction and is able to provide well for his family. He was able to offer Alice this sense of
Purdue - COMM - 217
Communication: a responsibility of all scientists - SciDev.Nethttp:/www.scidev.net/en/editorials/communication-a-responsibility-of-al.Science and Development NetworkNews, views and information about science, technology and the developing worldHome &gt; E
Purdue - COMM - 217
Science Communicationhttp:/scx.sagepub.com Effective Communication of Science in a Culturally Diverse SocietySibusiso Manzini Science Communication 2003; 25; 191 DOI: 10.1177/1075547003259432 The online version of this article can be found at: http:/scx
Purdue - COMM - 217
Published on olinuris.library.cornell.edu (http:/olinuris.library.cornell.edu)Home &gt; Printer-friendlyDistinguishing Scholarly Journals from Other PeriodicalsDistinguishing Scholarly Journals from Other PeriodicalsJournals, magazines, and newspapers ar
Purdue - COMM - 217
DNA Variant May Make Heavy Boozing A Team Sport - Science NewsPage 1 of 3http:/www.sciencenews.org/view/generic/id/61216Home / News / Article DNA variant may make heavy boozing a team sport Carriers imbibed more around hard-drinking partners Bruce Bowe
Purdue - COMM - 217
Psychological Sciencehttp:/pss.sagepub.com/ A Variable-Number-of-Tandem-Repeats Polymorphism in the Dopamine D4 Receptor Gene Affects Social Adaptation of Alcohol Use : Investigation of a Gene-Environment InteractionHelle Larsen, Carmen S. van der Zwalu
Purdue - COMM - 217
Page 1 of 1Permanent Address: http:/www.scientificamerican.com/podcast/episode.cfm?id=genetics-predisposes-for-heavy-drin-10-07-28Genetics Predisposes for Heavy Drinking After Watching Heavy DrinkingPeople with a particular variant of a dopamine recept
Purdue - COMM - 217
How to Write an Annotated Bibliography (Text Only Version) - Information &amp; Library S. Page 1 of 3INFORMATION AND LIBRARY SERVICESHow to Write an Annotated Bibliography (Text Only Version)You have just been given an assignment to write an annotated bibl
Purdue - COMM - 217
Engineering Good WritingFey, Carol Training; Mar 1987; 24, 3; ABI/INFORM Global pg. 49Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.Reproduced with permission of the copyright owner. Further repro
Purdue - COMM - 217
Tips for Communicating with a Lay AudienceIt's not just about your science; it's about the field. Be an ambassador for Alzheimer's or geriatrics or women's health research. Explain the economic and personal costs of the disease to which your research is
Purdue - COMM - 217
Communicating statistics and risk - SciDev.NetPage 1 of 5Science and Development NetworkNews, views and information about science, technology and the developing worldHome &gt; Practical GuidesPRACTICAL GUIDES Communicating statistics and riskAndrew Ple
Purdue - COMM - 217
cOnseRvATIOn Threats to Adlie penguins assessed p.1034COMMENTmAThemATIcs Roger Penrose reflects on 50 years and 6 volumes of work p.1039 RevIewIng Pool of peers grows to cope with submissions surge p.1041OBITUARY Brian Marsden, keeper of comets, rememb
Purdue - COMM - 217
Purdue - COMM - 217
60 Second Science Abstract 20 points Due Monday February 4th Specific Requirements: Write an abstract on the article you have chosen for your 60 Second Science presentation. When writing your abstract, please use the format that follows. The abstract shou
Purdue - COMM - 217
60 Second Science Presentation Point Value: 50 points (Presentation-30 points; Abstract-20 pts) Speaking date: February 4th Assignment Overview: Scientists often have to describe their research to lay audiences. They must find a way to describe quickly th
Purdue - COMM - 217
COM 217 Speech Evaluation Form: Persuasive PresentationSpeaker: _Introduction (_/20): _ Attention getter (was it effective?) _ Established relevance (did you give us a clear reason to listen?) _ Established credibility _ Thesis statement (provided clear
Purdue - COMM - 217
APA Format: HeadingsWriting Center989-964-6061, www.svsu.edu/writingcenter This handout is based on the Publication Manual of the American Psychological Association, Sixth Edition, 2010. Headings are used to signal the organization and structure of the
Purdue - COMM - 217
Annotated Bibliography Point Value: 50 points Assignment Overview: A bibliography is a list of sources such as books, journals, websites, or periodicals that one has used when researching a topic. An annotation is a summary and/or evaluation. Therefore, a
Purdue - COMM - 217
Annotated Bibliography Examples Greene, John C., 1961, Darwin and the Modern World View, Louisiana State University Press. A discussion of the impact of Darwin's ideas on biblical inspiration, natural theology, and social evolution. Presents the fallacy o
Purdue - COMM - 217
Annotated Bibliography Peer Review Worksheet Directions: Read your partner's first five entries of his or her annotated bibliography. Evaluate each entry based on the criterion below. For each entry, provide comments in the space provided. Be sure to note
Purdue - COMM - 217
Annotated Bibliography Peer Review Worksheet Directions: Read your partner's first five entries of his or her annotated bibliography. Evaluate each entry based on the criterion below. For each entry, provide comments in the space provided. Be sure to note
Purdue - COMM - 217
APA Style This handout is based on the 6th edition of the Publication Manual of the American Psychological Association (APA), but is not a comprehensive guide. For all rules and requirements of APA citations, please consult the 6th edition of the Publicat
Purdue - COMM - 217
APA Class Activity Worksheet In class, you will work with a partner and use the following information to construct a reference page in APA format. Example 1 Title of book: How good people make tough choices: Resolving the dilemmas of ethical living. Autho
Purdue - COMM - 217
Organizational Patterns and TransitionsOne of the ways you can accommodate your audience is by having a well organized paper/speechObjectivesExplain why it is important to organize speeches. Identify five major patterns of organizing speeches. Explain
Purdue - COMM - 217
COM 217 Personal InformationPlease complete this sheet and return to your instructor by Friday January 14th Worth: 10 participation points Please write legibly or type answers 1. 2. 3. 4. 5. 6. 7. 8. Name (official and preferred): Phone: Email Address: H
Purdue - COMM - 217
COM 217 Small Group Persuasive Presentation Point Value: 200&quot;The trouble with the world is not that people know too little, it's that they know so many things that just aren't so.&quot; Mark Twain Similar to the above statement made by Mark Twain, it has been
Purdue - COMM - 217
BRIAN LAMB SCHOOL OF COMMUNICATIONConsent Form for PapersI hereby give permission for the following selected paper(s) I wrote to be used for instructional purposes in Communication 217, or the equivalent course. My work may appear on the institutional w
Purdue - COMM - 217
BRIAN LAMB SCHOOL OF COMMUNICATIONConsent Form for PapersI hereby give permission for the following selected paper(s) I wrote to be used for instructional purposes in Communication 217, or the equivalent course. My work may appear on the institutional w
Purdue - COMM - 217
BRIAN LAMB SCHOOL OF COMMUNICATIONConsent Form for PresentationsI hereby give permission for the following selected videos of my presentation(s) that I delivered to be used for instructional purposes in Communication 217, or the equivalent course. My wo
Purdue - COMM - 217
Audience Analysis THE BASICSConducting an Audience AnalysisFormal surveys, structured interviews, questionnaires Informal discussions (direct or indirect) Should always try and find out something about your audience!Audience Analysisask yourself th
Purdue - COMM - 217
v. re l e na s iff d u r le o tic J r he ly A ll t r te la in e ho az ou Y Sc ag n M Ca ow Har ul op Pce n? ?Length ScholarlyLonger articles, providing in-depth analysis of topicsPopularShorter articles, providing broader overviews of many differen
Purdue - COMM - 217
Review of 60 Sec. Science Presentation How did things go?Things that went well.As a whole, you seemed well rehearsed. Overall, delivery was fairly good. Most everyone had a nice attention getter. Some did a nice job connecting their topic to the audienc
Purdue - COMM - 217
Introductions and ConclusionsA Good Introduction:Has an attention getter Establishes YOUR credibility (credibility statement) Relates the material to your audience (relevance statement) Presents the topic Previews the main points of the speech (thesis s
Purdue - COMM - 217
Headings in APAcfw_BasicsMake sure your margins are set at 1 inch Use 12 pt. Times New Roman font Everything in your paper should be double spaced. (This includes block quotations, the title page and the reference list.)Before you beginInformation Nee
Purdue - COMM - 217
Expert to Novice Informative Presentation &amp; PaperTotal Point Value: 200 points Paper: 100 points Presentation: 100 points Assignment Overview: In today's information age and global society, we often are faced with presenting and writing difficult or chal
Purdue - COMM - 217
Hi friends, I decided to post this as an example of an Expert to Novice paper. Be mindful of the fact that it is not a perfect example by any means. The first suggestion I would make is that this author visit the writing lab! While the author did a nice j
Purdue - COMM - 217
Expert to Novice Peer Reviewer Comments 1) Is the topic interesting to audience? If the answer is no, how can your partner make the topic more interesting and relevant?2) Is the thesis statement well written? (clear and easy to follow?) After reading the
Purdue - COMM - 217
Expert to Novice Speech Sign-Up Section 003 Friday October 7 1. Matthew Berry 2. Jiangnan (John) Shangguan 3. Chao Han 4. Ankita Jain Wednesday October 12th 1. Daniel Thornburgh 2. Xuan (Shawn) Xu 3. Xuan Xie 4. Fatin Munirah Ismail 5. Atifa Maryam Norban
Purdue - COMM - 217
Expert to Novice Peer Review Worksheet Directions: TYPE your responses to the following questions and bring three copies to class on Wednesday September 28th. OR you may bring three copies of a typed completed rough draft of your paper - meaning 4-5 pages
Purdue - COMM - 217
Extra Credit Opportunity #2 Only for those 21 and older!Please attend a &quot;Science on Tap&quot; presentation.information below: http:/www.facebook.com/scienceontaplafayette Answer the following questions; please type your response to receive the 10 full extra c
Purdue - COMM - 217
Extra Credit Opportunity OneCOM 217 Courtney Lynam Scherr Instructor To earn up to 10 points extra credit you may choose to participate in a Communication research study that is administered through the Department of Communication's Research Participatio
Purdue - COMM - 217
Extra Credit Opportunity #3Choose your own adventure 1) Identify a presentation that you would like to attend within your major/college. This presentation should not be a part of any of your usual lectures or requirements for other courses. This presenta
Purdue - COMM - 217
After attending a presentation sanctioned by your instructor, type your answers to the questions posed in this form to earn 10 points extra credit. You must answer each question with at least 2 complete sentences (except question 1)Questions to Ponder1.
Purdue - COMM - 217
Example of Abstract for 60 Second ScienceVoeltz, L.M. (1980). Children's attitudes toward handicapped peers. American Journal of Mental Deficiency, 84, 455-464. As services for severely handicapped children become increasingly available within neighborho