DOC PREVIEW
Duke CPS 110 - Address translation

This preview shows page 1-2-3-4 out of 11 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CPS110: Address translationCourse administrationSlide 3Slide 4Slide 5Midterm examAnalysis vs synthesisHow to studySyntax for programsSyntax for tracesOn-board reviewCPS110: Address translationLandon CoxFebruary 18, 2009Course administrationProject 1 drawing to a closeTwo groups with 100% (another is close)Four groups > 60 on 1tMany others close (40-50 range)Some final tips …Course administrationWhat to carefully rereadSection 4.4 of the spec (ordering stuff)Thread implementation slidesLock implementation slidesI see a lot of code that ignore these sourcesOther hints …Course administration /* * Allocate space for thread control block and * new stack. */ try { thread_ptr = new thread_t; thread_ptr->stack = NULL; thread_ptr->stack = new char [stack_size]; } catch(bad_alloc) { if (thread_ptr != NULL) { if (thread_ptr->stack != NULL) { delete [] thread_ptr->stack; } delete thread_ptr; } return(-1); }Course administrationProject 2 (virtual memory) out next WednesdayIn some ways easier than P1In some ways harder than P1 (not given a solution)Next deadline: midterm exam (February 23rd)In-classOne sheet (two sides) of notesNo laptops or other electronic resourcesPractice exam in discussion section this weekMidterm examWhat will be covered?All threads/concurrency materialProject 1LecturesHomework problemsAnalysis vs synthesisNo regurgitation questionsAnalysis questionsAnalyze system/program/designTrace through programCompute performanceDetermine properties (deadlock, starvation, races)SynthesisDesign/construct a new system/program/designI like these more (e.g. learn the most doing projects)How to studyDo homework problemsUnderstand Project 1In groupsCreate and answer questions I might ask(you might get lucky; happened in past)Syntax for programsReal or pseudo is fine (just be clear)STL is finequeue.{push, pop, front, empty}MonitorsProject 1 syntax or OO syntaxthread_lock (lock_num) or mutex.lock ()SemaphoresOO syntaxsem1.up (), sem1.down (), sem2.up (), …There is no “getVal” call!Remember to specify initial value!!Syntax for tracesThread: line number (or range of lines)1: checkMilk () {2: if (noNote) {3: leave note4: if (noMilk){5: buy milk;6: }7: remove note;8: }9: }Landon: 1-2Melissa: 1-2Landon: 3-6Melissa: 3-6On-board


View Full Document

Duke CPS 110 - Address translation

Download Address translation
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Address translation and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Address translation 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?