6 Pages

IE8-X-Scheduling

Course: COEN 020, Fall 2009
School: Santa Clara
Rating:
 
 
 
 
 

Word Count: 842

Document Preview

Selecting Objective: Thread to Run Scheduler selects a thread to run Context Switch Processor relinquished SCHEDULING Multiple Waiting Threads A Single Running Thread Copyright 2000, Daniel W. Lewis. All Rights Reserved. Copyright 2000, Daniel W. Lewis. All Rights Reserved. Thread States: Initial View Time-Sliced Scheduling Each thread runs for a fixed amount of time. Threads are run in a round-robin...

Register Now

Unformatted Document Excerpt

Coursehero >> California >> Santa Clara >> COEN 020

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.
Selecting Objective: Thread to Run Scheduler selects a thread to run Context Switch Processor relinquished SCHEDULING Multiple Waiting Threads A Single Running Thread Copyright 2000, Daniel W. Lewis. All Rights Reserved. Copyright 2000, Daniel W. Lewis. All Rights Reserved. Thread States: Initial View Time-Sliced Scheduling Each thread runs for a fixed amount of time. Threads are run in a round-robin sequence. Appropriate for regular multi-programming environments. Poor response time performance. Need better strategy for real-time systems. Copyright 2000, Daniel W. Lewis. All Rights Reserved. Ready Running Thread waiting for scheduler to give it a turn. Inactive Thread unknown to scheduler. Copyright 2000, Daniel W. Lewis. All Rights Reserved. Pending Threads Threads must often wait for an event to occur or some shared resource to become available. Simply moving the task back to the ready state isn't appropriate because it may run again later only to discover that it must continue to wait, thus adding unnecessary task switching overhead. Copyright 2000, Daniel W. Lewis. All Rights Reserved. Thread States: Revised View Thread waiting for an external event or shared resource. Pending Running Thread waiting for scheduler to give it control. Ready Inactive Copyright 2000, Daniel W. Lewis. All Rights Reserved. Non-Preemptive Context Switch Yield Call State of Thread A Running Interrupt Routine Run-Time Kernel State of Thread B Interrupted Running Ready Non-Preemptive Thread States Pending Running Context Switch Post Ready Ready Running Yielding Interrupted Pending Inactive Copyright 2000, Daniel W. Lewis. All Rights Reserved. Copyright 2000, Daniel W. Lewis. All Rights Reserved. Preemptive Context Switch State of Thread A Running Interrupt Routine Run-Time Kernel Post State of Thread B Pending Ready Interrupted Running Context Switch Preemptive Thread States Pending Running Interrupted Ready Interrupted Ready Inactive Copyright 2000, Daniel W. Lewis. All Rights Reserved. Copyright 2000, Daniel W. Lewis. All Rights Reserved. Priority-Based Scheduling Each thread is assigned a priority number. Static priorities never change. Dynamic priorities can vary during execution. Required to avoid Priority Inversion Problem. Copyright 2000, Daniel W. Lewis. All Rights Reserved. Priority Inversion Resource Owned by Low-Priority Thread High-Priority Thread Priority Inversion High-Priority Thread State Running Pending Running Request resource Run-Time Kernel Release Resource Low-Priority Thread State Ready Running Ready Copyright 2000, Daniel W. Lewis. All Rights Reserved. Priority Inversion Bounded Priority Inversion Duration is no longer than that of the critical section where the lower-priority thread owns the resource. Mars Pathfinder Suffered Unbounded Priority Inversion Low-priority meteorological thread Acquired the (shared) bus. Woke up and preempted the meteorological thread. Woke up and was blocked because it couldn't acquire the bus; when it couldn't meet its deadline it reinitialized computer the via a hardware reset. Copyright 2000, Daniel W. Lewis. All Rights Reserved. Medium-priority, long-running, communications thread High-priority bus management thread Unbounded Priority Inversion Occurs when a third (medium-priority) thread preempts the low-priority thread during the inversion for an indefinite amount of time. Copyright 2000, Daniel W. Lewis. All Rights Reserved. Limiting the Duration of an Unbounded Priority Inversion Objective: To prevent low-priority thread from being preempted by medium-priority thread during the priority inversion. Priority Inheritance Protocol When a high-priority thread attempts to lock a mutex already locked by a lower-priority thread, the Priority Inheritance Protocol (PIP) temporarily raises the priority of the low-priority thread to match that of the blocked thread until the lowpriority thread unlocks the mutex. Advantage: It is transparent to the application. Disadvantage: Adds complexity to the kernel. Copyright 2000, Daniel W. Lewis. All Rights Reserved. Strategies: Priority Inheritance Protocol Priority Ceiling Protocol Technique: Manipulate thread priorities at run-time. Copyright 2000, Daniel W. Lewis. All Rights Reserved. Priority Ceiling Protocol Priority of the low-priority thread is raised immediately when it locks the mutex rather than waiting for a subsequent lock attempt by a higherpriority thread. Advantage: Easy to implement. Disadvantage: The priority ceiling value must be predetermined for use with the mutex; this value must be the highest among all the threads that attempt to lock the same mutex. Copyright 2000, Daniel W. Lewis. All Rights Reserved. Assigning Priorities Scheduling: Threads with higher priority are scheduled to run first. Objective: Assign priorities in such a way that all outputs are computed before ...

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:

Milwaukee School of Engineering - CS - 321
CS321-F99-1510/13/99Non-Rectangular Clip Areas Theoretically any shape Clip lines within shape Often a polygon Can approximate curves, etc. Extend clipping algorithm Check for intersection with all edgesPolygon Clip Area ExampleExtend edge lines
E. Kentucky - EECS - 678
Productivity Tools: EditorsDr.Douglas Niehaus Sivasankar Ponnam balamSome Common Editors ed vi (vim , elvis, ni & variants of vi) pico (very similar to pine) emacs x em acs (an ex tension of em acs)Focus on x em acs (an ex tension of em acs) vimVi E
Tennessee - CS - 365
Chapter 3Describing Syntax and SemanticsISBN 0-321-19362-8Chapter 3 Topics Introduction The General Problem of Describing Syntax Formal Methods of Describing Syntax Attribute Grammars Describing the Meanings of Programs: Dynamic SemanticsCopyright 20
Rose-Hulman - ME - 305
ME 305 End Of Year Comments Spring 2001 29 May 01 1. A good start, but I need to scrub the homework, I think. 2. The biggest thing I need to do is level the playing field for the students no more students who have completed Aero Design! 3. I would like to
TCU - ETD - 04282009
INTRODUCTION High gamma-ray counts on well logs through the Barnett Shale (Mississippian) in the Fort Worth basin are caused by enrichment in uranium and may represent condensed sections. Condensed sections are the sedimentary record of maximum flooding e
Westminster PA - PRINCIPLES - 152
MEASUREMENT OF THE CHARGE TO MASS RATIO (e/me) OF AN ELECTRONObjectThis experiment will allow you to observe and understand the motion of a charged particle in a magnetic field and to measure the ratio of the fundamental charge, e, to the mass, me , of
Monash - LAW - 5104
Civil ProcedureTopic 7: Service Personal service Documentsneed not be served personally unless specifically required: r 6.01 Originating process must be served personally, except where o/w provided- r 6.02(1) PersonalserviceR 6.03 (1) Personal ser
Case Western - SXS - 282
MEMORANDUM To: Law Partner Friedman From: Shalem Shem-Tov Re: In the Matter of Danny Williams Date: January 22, 2004SUMMARY Based on the evidence we have in connection with Danny Williams' trial for second degree murder for the killing of Ms. Corillo, it
Iowa State - E - 105
ENGLISH 105BOOK ORDERFALL 1998Please return this form to Deanna Stumbo, 403 Ross Hall, by May 27.Please click next to texts you wish to order for next term. If you need desk copies of any of the texts, please indicate by selecting DC. Instructor's Nam
UCSC - L - 130
Ocea 130/230 Biological OceanographySpring 2009Environmental Control and the NA BloomI.Biogeography a. The term Biogeography refers to the study of biology (species distributions specifically) in relation to the geography of the environment. b. This h
Harvard - EXTENSION - 22905
HARVARD EXTENSION SCHOOL SPCH E-130 ESSENTIALS OF PUBLIC SPEAKING SPRING TERM, 2009 SYLLABUS _ INSTRUCTOR: Marjorie Lee North, M.A., C.C.C./SLP e-mail: mnorth@fas.harvard.edu telephone: (617) 852-8933 Mondays, 5:30-7:30P.M. Sever 103TEXT: No text is requ
Berkeley - TINYOS - 1212
The Collection Tree Protocol (CTP)TEP: Group: Type: Status: TinyOS-Version: Author: Draft-Created: Draft-Version: Draft-Modified: Draft-Discuss:123 Network Working Group Documentary Draft 2.x Rodrigo Fonseca, Omprakash Gnawali, Kyle Jamieson, Sukun Kim,
New Mexico - ASTRO - 101
ASTRONOMY 101Section 004Introductory AstronomyScheduled Course Meeting: Monday and Wednesday evening, 7:00 - 8:15 PM, LodeStar Astronomy Center - Domed Theater 1801 Mountain Road Professor: Dr. John T. McGraw Physics & Astronomy 36 (NE corner Yale and
Oakland University - EXAM - 63992
Sociology 592 - Research Statistics I Exam 2 November 8, 20021.(10 points each, 30 points total.) You have been asked to serve as a statistical consultant for several proposed projects. For each of the following, your employers want you to tell them: (i
Idaho - BIOL - 558
Lecture 6: Testicular anatomy and physiology Outline: review of spermatogenesis/spermiogenesis testicular cell types- form and function yp testis/male reproductive tractSpermatogenesisprimordial germ cells in the male differentiate into spermatogonia sp
University of Hawaii - Hilo - OCN - 626
Revisiting Carbon Flux Through the Ocean's Twilight Zone Ken O. Buesseler, et al. Science 316, 567 (2007); DOI: 10.1126/science.1137959 The following resources related to this article are available online at www.sciencemag.org (this information is current
University of Texas Medical Branch at Galveston - CHOLESTEAT - 9902
Cholesteatoma-Pathogenesis and Surgical ManagementGrand Rounds Presentation February 24, 1999 Kyle Kennedy, M.D. Jeffrey Vrabec, M.D.IntroductionCholesteatoma (keratoma)-essentially an accumulation of skin in ME/mastoid s insidious nature s variable sy
NYU - EZ - 255
Early effects of morphological complexity in visual word processing: An MEG studyEytan Zweig and Liina PylkknenDepartments of Linguistics & Psychology, New York UniversityIntroductionModels of lexical access differ in the timing of lexical decompositi
Wisconsin - MP - 573
MEDICAL PHYSICS/BME 573: IMAGE SCIENCE Fall, 2008 Lecture 34. November 26, 2008 Part I: The 2D affine transformations Today we discuss the manipulations that can be performed on an image matrix of square pixels in order to change the size, orientation, an
Rose-Hulman - CSSE - 453
Simulating dynamical features of escape panicPresentation By: Jacob McCord Ian Rogers9 Characteristics of Escape PanicPeople move or try to move considerably faster than normal Individuals start pushing, and interactions among people become physical in
UNC Charlotte - STAT - 7027
*A.9 SAS file for analyses of AIDS-AZT data in Table 5.5 ;data aids;input race $ azt $ yes no @;cases = yes + no;cards;white y 14 93 white n 32 81black y 11 52 black n 12 43;* the "class option" in genmod produce design variableas race=1 if white
Pittsburgh - EE - 1212
Manual for LabVIEW Lab 1.Open the LabVIEW window according to the following steps: Start All Programs Design Tools National Instruments LabView 7.1 National Instruments Labview 7.1 2.After the Labview window appears, click Continue then Open. The first ti
UCCS - CS - 4550
CS450/550 Operating SystemsLecture 3 DeadlocksDr. Xiaobo Zhou Department of Computer ScienceCS450/550 Deadlocks.1UC. Colorado SpringsAdapted from MOS2EReview: Summary of Chapter 2 Sequential process model Multi-threading: user-space vs. kernel-spac
Western Kentucky University - TXT - 102
June 19, 2006 Woman Is Named Episcopal Leader By NEELA BANERJEE COLUMBUS, Ohio, June 18 The Episcopal Church elected Bishop Katharine Jefferts Schori of Nevada as its presiding bishop on Sunday, making her the first woman to lead a church in the world
GWU - NSAEBB - 109
Iowa State - BUS - 594
<html> <head> <linkrel="stylesheet"type="text/css" href="http:/www.bus.iastate.edu/Include/style/style.css"/> <metaname="GENERATOR"content="MicrosoftFrontPage12.0"> <metaname="ProgId"content="FrontPage.Editor.Document"> <title>IowaStateUniversityCollegeof
LSU - E - 003
Student Privacy RightsPS-30PURPOSE To inform all concerned of the rights and prerogatives of students under the Family Educational Rights and Privacy Act of 1974 (sometimes referred to herein as "the Act"), and to outline procedures for those students w
Midwestern State University - AS - 350
Critical Evaluation assignment due today Exam 1 Feb 18 Review session Feb 16 ~6:30 pm Clark 149Puberty The process in which an animal gains the ability to reproduce successfully Similar to embryogenesis, sequence of events leading to puberty is critical
SUNY Buffalo - DBRAUN - 214
Philosophy 214/414 Logical Methods in Philosophy Spring 2008Homework Assignment #2 Due at the beginning of class on Wednesday, January 30 A. More Grammar 1. Let be a wff of PL. Let s() be the number of occurrences of sentence letters in . Let b() be the
UCSB - ESM - 289
Suppliers' Perspectives on Greening the Supply ChainA report on suppliers' views on effective supply chain environmental management strategiesPrepared by: BUSINESS FOR SOCIAL RESPONSIBILITY EDUCATION FUND 609 Mission Street, 2nd Floor San Francisco, CA
Cal Poly Pomona - EGR - 403
Chap 2: Fixed cost: such as rent, utility cost, administration costs Variable cost: such as labor, material costs Total cost = fixed cost + variable cost Average cost = total cost / number of units Marginal cost: cost of additional unit of production Brea
CSU San Bernardino - CHEM - 438
CHEMISTRY 438A BIOCHEMISTRY IIIThird Examination May 30, 2007 1. (10 points, 1 point each) Select from the following list of terms the one that completes each of the statements below. (No term is to be used more than once.) affinity coding endonuclease e
Iowa State - MAY - 0419
8.10 Appendix B Milestone EvaluationThis appendix is taken from the Project Plan section 5.11 which is Milestone Evaluation and Criteria. The milestone evaluation should be used to define the success of the project. Task 1: Problem Definition 1. Exceeded
Black Hills State University - CHEMISTRY - 112
Quiz - Chapters 1&2Section I. Fill in the blank (1 point per blank) 1. In SI units the prefix that means 10-6 is _ and it is abbreviated _. 2. The number 2.5060 has _ significant figures. 3. Express 2,305,713 in scientific notation with 3 significant fig
UCLA - GEOG - 634
Colorado River Basin ClimatePaleoPresentFutureSpecial Publication for Association of California Water Agencies and Colorado River Water Users Association ConferencesNovember 2005COLORADO RIVER BASIN CLIMATE/PALEO, PRESENT, AND FUTURESouthern Cali
Lake County - ECE - 598
(n 9.4C)7fnh),-. !f +l F :t FlsIrv) vf ;sggHr.O)(Dg.E c)i' o; g[$; Ei6g9oEE ; q Tgfi g q 6 . ( r ( -.95 : Kts.c s[34&E cfw_(D1 ,.o= =ro =q3 o' sj(D1 3' - a $ i 3 F : l,.\60a q9. 5U)FD*Oq=A(DHEE:X.5 E.F 6 g"ag f E 3: g z e55t
George Mason - ECE - 545
Building BlocksEntity Declaration Descriptionentity entity_name is port ( [signal] identifier cfw_, identifier: [mode] signal_type cfw_; [signal] identifier cfw_, identifier: [mode] signal_type); end [entity] [entity_name];Exampleentity register8 is p
Kent State - LC - 0607
Learning From Experience: Developing Portraits of Practice Part IA.Learning Community (LC) Title Teacher Technology TriadsB.Community Curator(s). Who has prepared Part I of this Portrait on behalf of your LC? What date was it completed? Pat Mazzer, A
Washington - CSSAP - 432
Computer NetworksLANsTopologiesStar RingHUBHUB HUB HUBHUBHUBBus Hub / TreeTransmission Media3 Main types of transmission media Twisted Pair Typical limit of 100 m 1 M bps Special handling up to 10 Mbps Inexpensive to Purchase Install Typically u
Berkeley - EE - 140
EE 140ANALOG INTEGRATED CIRCUITSSPRING 2009C. NguyenINFORMATION ON ANALOG CIRCUIT SIMULATION USING H-SPICEA. IntroductionSPICE is a general-purpose circuit simulation program for nonlinear dc, nonlinear transient, and linear ac anayses. Circuits may
Penn State - ABE - 461
BackHomePrintViewsSearchResultsExitDirectional control v alv esBang-bang is the term often used to describe basic directionalcontrol valves. It refers to how the valves shift from fully open to fully closed. This usually occurs in an instant, cau
Lake County - ECE - 598
COUNTING FACES OF RANDOMLY-PROJECTED POLYTOPES WHEN THE PROJECTION RADICALLY LOWERS DIMENSIONDAVID L. DONOHO AND JARED TANNER1. Introduction 1.1. Three surprises of high dimensions. This paper develops asymptotic methods to count faces of random high-di
Idaho - PSYC - 300
Psyc 311 Abnormal PsychologyOverview Has a mind/body connection Many disorders 1Psychophysical DisordersPsychology 311 Abnormal PsychologyListen to the audio lecture while viewing these slidesCoronary Heart Disease Cancer HIV/AIDS Chronic Fatigue S
Wisconsin - ECON - 101
Economics 101 Spring 2008 Problem Set 9 Suggested Solutions1. Question 5, page 378 a. With any two points in the table, it is possible to get the demand curve equation: P = 18 - Q. Since demand is linear, the MR curve is a straight line with the same int
Penn State - ABE - 461
BackHomePrintViewsSearchResultsExitF ittingsIf the components within hydraulic systems never had to be removed, connections could be brazed or welded to maximize reliability. However, it is inevitable that connections must be broken to allow serv
N. Arizona - BIO - 4262006
Plant Physiol. (1997) 114: 1-7Bioprotective Alkaloids of Grass-Funga1 Endophyte SymbiosesLowell P. Bush, Heather H. Wilkinson, and Christopher 1. Schardl*Department of Agronomy (L.P.B.) and Department of Plant Pathology (H.H.W., C.L.S.), University of
USC - CSCI - 599
DIFS: A Distributed Index for Features in Sensor NetworksBenjamin Greenstein , Deborah Estrin , Ramesh Govindan , Sylvia Ratnasamy , and Scott Shenker Department of Computer Science, University of California at Los Angeles, email: ben,destrin @cs.ucla.
Rose-Hulman - CSSE - 373
Computer Science 490, Software Verification and Validation, Fall term, 2000-2001Proofs of ProceduresMark Ardis Rose-Hulman Institute of Technology September 2000 So far we have looked at rules for describing the behavior of simple program statements: as
UCSB - ECE - 162
Lecture 6ECE162B, Winter 2009, Professor BlumenthalLecture 6, Slide 1 Reading MaterialReading: Finish Chapter 6 Solymar and Walsh Chapter 7 Solymar and WalshECE162B, Winter 2009, Professor BlumenthalLecture 6, Slide 2 Thermionic EmissionNote the d
Rochester - CSC - 290
I) Preamable Last Modified: Name: Project: April 22nd , 2009 Joseph Kachinsky (jkachins@u.rochester.edu) Assassins Game databaseSummary: Assassins is a game where players are given targets, who are also playing, whom they must track down. The player then
Texas A&M - ECEN - 689
Network Storage SecurityBrett Willman Sukwoo KangPresentation Overviewn nnDefine Network Storage Introduce a framework for evaluating storage system security Explain innovative new technologynSnapdragon Block-level securityn nApply framework to S
Iowa State - DATA - 1114
CONSTITUTION OF IOWA STATE UNIVERSITY CHAPTER OFSigma Alpha LambdaPreamble We the members of Sigma Alpha Lambda, to fully realize our purpose, do hereby adopt and establish this constitution as the guiding instrument of our organization. ARTICLE I - Nam
North Texas - CSE - 5350
QueryProcessing04/28/09Chapter13:QueryProcessing Overview MeasuresofQueryCost SelectionOperation Sorting JoinOperation OtherOperations EvaluationofExpressionsBasicStepsinQueryProcessingBasicStepsinQueryProcessingParsingandtranslation translatethequ
Clayton - CSU - 15205
Project Description & ScopeGirls Incorporated of Greater Atlanta Non-profit organization Afterschool programs for girls Summer Camp for girlsIntroduction: Girls Incorporated of Greater AtlantaProjected Goal Establish a user friendly nagaviates websit
Western Kentucky University - TXT - 102
New Afghan Constitution Juggles Koran and DemocracyOctober 19, 2003 By CARLOTTA GALL KABUL, Afghanistan, Oct. 18 - The question now facingAfghans is: how to devise a constitution that combines thecountry's deep-rooted Islamic traditions and itsaspi
University of Rochester - PHYS - 232
Information for Exam 2Fundamental Concepts Equations you must know: (1) Electric field of a point charge (2) The Lorentz force (3) Potential of a point charge (4) Magnetic field of point charge / wire segmentOther fundamental concepts: The Superposition
Cornell - SRF - 990324
Presented at the 1999 Particle Accelerator Conference, New York, NYSRF 990324-02BEAMLINE RF LOAD DEVELOPMENT AT CORNELL*E. Chojnacki, T. Gruber, and N. Sherwood, Cornell University, Ithaca, NY W. J. Alton, Ferrite Components Inc., Hudson, NH AbstractD
UCCS - MAE - 4410
Orbit ParticularsLessons 4 thru 8ORBITAL ELEMENTS Classic Orbital Elements (COEs)/Orbital Element Set 6 quantities needed to describe orbit and spacecraft's position within orbit Airplane: Latitude, Longitude, Altitude: Range Horizontal velocity, Headi
Elizabeth City - MMT - 0607
A Multiple Linear Regression of pCO2 against Sea Surface Temperature, Salinity, and Chlorophyll a at Station BATS and its Potential for Estimate pCO2 from Satellite DataLee Smalls Jr., MyAsia Reid1704 Weeksville Road, Box Elizabeth City, North Carolina
Tennessee - CS - 365
Chapter 4Lexical and Syntax AnalysisISBN 0-321-19362-8Chapter 4 Topics Introduction Lexical Analysis The Parsing Problem Recursive-Descent Parsing Bottom-Up ParsingCopyright 2004 Pearson Addison-Wesley. All rights reserved.4-2Introduction Language
Michigan - EECS - 482
EECSpeaks, Volume 39, Issue 2, October 2007 http:/hkn.eecs.umich.edu/pdfs/EECSpeaks/vol39_issue2.pdfPage 4EECSpeaks: 100% Real Publication, Just Add ReadersUsing Subversion on your ITD AFS spaceBy Adam Goodman For any sort of group coding project (for